Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matrixcli requires config file even if all parameters are specified on command line #15

Open
marcone opened this issue Mar 28, 2021 · 0 comments

Comments

@marcone
Copy link

marcone commented Mar 28, 2021

It appears that even though all required parameters can be specified on the command line, matrixcli still requires them to be in a config file:

$ ./matrixcli --server someserver --username theuser --password sekrit send -r roomid message
WARNING: config file does not exist
Traceback (most recent call last):
  File "./matrixcli", line 128, in config_vs_options
    server = config.accounts[0]["server"]
AttributeError: module 'config.py' has no attribute 'accounts'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./matrixcli", line 356, in <module>
    server, username, password = config_vs_options()
  File "./matrixcli", line 177, in config_vs_options
    return args_server, args_username, args_password
NameError: name 'args_server' is not defined

If I put all the same information (server, user, password) in a config file, then it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant