HideHelpCommand issues #2129
Labels
area/v3
relates to / is being considered for v3
kind/bug
describes or fixes a bug
status/triage
maintainers still need to look into this
Uh oh!
There was an error while loading. Please reload this page.
My urfave/cli version is
v3.3.3
Checklist
Dependency Management
Describe the bug
I have noticed strange results produced by the default help template when my application is using
HideHelpCommand
:Using
HideHelpCommand
in the root command and in a subcommand that has only one command (e.g.program config generate
), the output is displayed without "COMMANDS" section.https://go.dev/play/p/v7DRNLiVRzN
Using
HideHelpCommand
in the root only affects subcommands in the sense that "help" command is not shown in "COMMANDS" section, however the "help" command can still be invoked when it is specified as an argument.https://go.dev/play/p/cGhEL-usWcW
To reproduce
I have attached Go playground links in the description.
Observed behavior
See the description.
Expected behavior
HideHelpCommand should hide help command from the usage output as well as disable the command when specified. Ideally, the behavior should be inherited from the parent command.
Additional context
None.
Want to fix this yourself?
We'd love to have more contributors on this project! If the fix for
this bug is easily explained and very small, feel free to create a
pull request for it.
Run
go version
and paste its output hereRun
go env
and paste its output hereThe text was updated successfully, but these errors were encountered: