-
Notifications
You must be signed in to change notification settings - Fork 353
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
"--help <subcommand>" runs subcommand #168
Comments
This would be a bug. What gets run? The callback, or does it not exit the main function? |
I just noticed that without sub_arg it shows the subcommand's help. What I'm trying to achieve is that the sub_arg is required IF the subcommand is called. Maybe I'm doing this wrong. |
I believe this is a regression. I think when the short-circuiting behavior was refactored this probably happened. To be clear, this correctly prints help:
And this doesn't (and should):
|
Would be better if either subcommand's help or a usage error is shown.
The text was updated successfully, but these errors were encountered: