-
Notifications
You must be signed in to change notification settings - Fork 70
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
Usage text is not shown when usage is incorrect #202
Comments
this relates to #198, sadly our current CLI framework is either always or never on usage, we do plan to do some significant improvements on usability next and we are already talking about improving some of our error messages |
What would also be helpful is for (at least common) command line options to be accepted/ignored such that the following usage is possible: # works mongocli atlas --projectId X clusters list # fails mongocli atlas --projectId X # still fails mongocli atlas --projectId X help If I am working within a project, I would like to setup e.g. an alias like this: alias m='mongocli atlas --projectId X' ... and then be able to explore and receive help for commands without having to retype project id argument. |
@p-mongo for that project id usage you can do |
Circling back on usage, we are waiting on spf13/cobra#842 to be merge and release so we can take advantage of it in our own case |
@p-mongo we have made an internal change as cobra is taking their time to address this, if you can test the latest master and let us know what you think we'd really appreciate it. If not we're planning a release this week that should include this along with other improvements |
Now on master, I get:
Since the usage was not correct, I would like mongocli to tell me what the correct usage is.
The text was updated successfully, but these errors were encountered: