You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default help message for subcommands that don't have further subcommands seems cluttered with extra [command [command options]] part.
Example
Got:
NAME:
app hello - Prints hello message.
USAGE:
app hello [command [command options]] name
OPTIONS:
--lang string
--help, -h show help
GLOBAL OPTIONS:
--global-flag string
Want:
NAME:
app hello - Prints hello message.
USAGE:
app hello [options] name
OPTIONS:
--lang string
--help, -h show help
GLOBAL OPTIONS:
--global-flag string
Activity
zzspoon commentedon May 19, 2025
in template.go usageTemplate
{{if .VisibleFlags}} [command [command options]]{{end}}should be
{{if .VisibleFlags}} [options]{{end}}{{if .VisibleCommands}} [command [command options]]{{end}}dearchap commentedon May 19, 2025
@zzspoon want to submit a PR for this ?