-
Notifications
You must be signed in to change notification settings - Fork 30
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
Parent command flags are duplicated in subcommands #43
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A change related to #42 allowed subcommands to inherit flags from their parent. Unfortunately, this change has resulted in some duplication of flags. As shown in the example above, the flags
-h
,-v
, and-t
are now printed twice in the help output when help for subcommands are shown, which is unexpected and looks a bit odd. It's especially pronounced in subcommands in which the parent command does not have any flags; two blocks for-h
,-v
, and-t
are printed consecutively now, like this:The text was updated successfully, but these errors were encountered: