-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
global options (common options) - program.parse() deleting command help #1739
Comments
Hi! You should call In your example, when you specify program.parse(); //this line insert the help and options from 'name' to 'command' |
But then when I'm calling
Maybe the help could be something like this:
Thanks! |
When you call
To see the program help with the global options:
There isn't currently a way to show the global options along with the subcommand. |
Suppose you set things up so you can type
Then program
.name("weather") |
OK THANKS!
Then when using command help:
|
Have a look at |
An answer was provided, and no further activity in a month. Closing this as resolved. Feel free to open a new issue if it comes up again, with new information and renewed interest. |
Hello and many thanks for commander!
This is my first issue applying (:
it seems that when I parsing the global options the global help is run over the command help.
expected behaviour: global help will add to the command help.
also notice that this work without 'process.argv' like in the docs example.
my code:
2022-05-28.23-05-23.mp4
The text was updated successfully, but these errors were encountered: