-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Support "unknown command" for subcommands. #4284
Labels
Comments
Thanks for creating an issue @npinto, but this is how cobra works by default. You can pass whatever you want as a command/argument: Looks like we need to come up with some sort of custom validation. Docker does this but idk how. I don't think this is a huge priority and would love some external contribution for this. |
alexanderbez
changed the title
"gaiacli query distr comission" returns a misleading error.
Support "unknown command" for subcommands.
May 6, 2019
5 tasks
alessio
pushed a commit
that referenced
this issue
Jun 4, 2019
Fixes #4284 Now prints: gaiacli query distr comission --trust-node cosmos1234 ERROR: unknown command "comission" for "distr" Did you mean this? commission Adds custom argument validation for subcommands with subcommands. Doesn't affect "query" or "tx" subcommands since they reside in gaia repo. All flags except help are disabled for these commands.
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary of Bug
gaiacli query distr comission --trust-node cosmos1234
returns the errorERROR: unknown flag: --trust-node
which is misleading since the typo is from "commission". I believe it should lead to an error stating thatcomission
is "unknown".Version
Steps to Reproduce
gaiacli query distr comission --trust-node cosmos1234
For Admin Use
The text was updated successfully, but these errors were encountered: