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

--instance parameter is confusing #166

Open
craigmaloney opened this issue Jan 21, 2018 · 0 comments
Open

--instance parameter is confusing #166

craigmaloney opened this issue Jan 21, 2018 · 0 comments

Comments

@craigmaloney
Copy link
Collaborator

If you pass the --instance parameter on an already-configured tootstream (eg: with a default configuration block) tootstream will cheerfully ignore the parameter and load up the default instance. This parameter will only work if you add the --profile parameter, and even then I believe it will check if the profile is present and use that profile's instance configuration instead.

Of course the downside is if you pass --instance without a profile and it uses the instance parameter instead of the configuration file's instance then you could potentially try logging in with the wrong credentials.

Not sure what the best way to handle this is but it makes --instance only useful in one case (logging in to a new instance with no associated profile in the configuration).

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

No branches or pull requests

1 participant