subcommand help did show global options. #1881
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.27.1
Checklist
Dependency Management
Describe the bug
Help for subcommand does not show global options, this can lead to confusion if global flag is required because when call subcommand, it always show help of subcommand instead of running it. And you will never know why it does not run subcommand and always show subcommand help.
To reproduce
Observed behavior
If run subcommand, it will show help of
add
instead of running it. Because no global option in the subcommand help output, you never know that is caused by missing a required global option "s". If I set global option to not required, then subcommandadd
will be executed.Expected behavior
When run help subcommand, it should show global options.
The text was updated successfully, but these errors were encountered: