-
Notifications
You must be signed in to change notification settings - Fork 67
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
Detailed help for default command is inaccessible #95
Comments
Did you check with 3.0.1? It should be fixed starting from 2e91023 |
Although this behavior only triggers if you don't have other documented commands. If you do, then your best option is to also give a name to your "main" command (just like we do with |
Right, this issue is about when you have other documented commands. |
There actually is, but it's undocumented. In Yarn's case for example:
Once I finish the completion PR, |
When running
clitool --help
with a default command and other subcommands, clipanion will output a list of commands. It will sayYou can also print more details about any of these commands by calling them with the -h,--help flag right after the command name.
However, the default command does not have a command name, so there is no way to get more details about the default command.
I'm not sure if/how this should be supported. If the default command is given an additional, non-default path, and if that non-default path is specified before
Command.Default
, then the path will appear in--help
documentation. The output will not, however, indicate that this command is the default.The text was updated successfully, but these errors were encountered: