No commands listed when only one subcommand #1787
Labels
area/v2
relates to / is being considered for v2
kind/bug
describes or fixes a bug
status/triage
maintainers still need to look into this
My urfave/cli version is
v2.25.7
Checklist
Dependency Management
Describe the bug
When I make a command with only one subcommand and hide the help command my subcommand is not displayed.
My guess is that since a command and a subcommand is the "same", it always hide the command list when it's fewer than one item there, because it assumes it is the help-command.
To reproduce
Observed behavior
./nais p password -h NAME: nais postgres password - Administrate Postgres password USAGE: nais postgres password [command options] [arguments...] OPTIONS: --help, -h show help
Expected behavior
Additional context
If I enable
HideHelpCommand
for the specific command (not the subcommand) it works.Run
go version
and paste its output hereRun
go env
and paste its output hereThe text was updated successfully, but these errors were encountered: