How to Hide Global Options in Subcommand Help Output
Hello. Is there a way to not show all the global options when running the
--help--help flag in a subcommand? It is very distracting. In fact, I was not seeing the only important optin of my subcommandUSAGE
$ import-cost-centers [--database-url text] <csv-file>
ARGUMENTS
<csv-file>
An existing file.
OPTIONS
--database-url text // <----- This is the only one that matters
A user-defined piece of text.
This option can be set from environment variables.
--completions sh | bash | fish | zsh
One of the following: sh, bash, fish, zsh
Generate a completion script for a specific shell.
This setting is optional.
--log-level all | trace | debug | info | warning | error | fatal | none
One of the following: all, trace, debug, info, warning, error, fatal, none
Sets the minimum log level for a command.
This setting is optional.
(-h, --help)
A true or false value.
Show the help documentation for a command.
This setting is optional.
--wizard
A true or false value.
Start wizard mode for a command.
This setting is optional.
--version
A true or false value.
Show the version of the application.
This setting is optional.USAGE
$ import-cost-centers [--database-url text] <csv-file>
ARGUMENTS
<csv-file>
An existing file.
OPTIONS
--database-url text // <----- This is the only one that matters
A user-defined piece of text.
This option can be set from environment variables.
--completions sh | bash | fish | zsh
One of the following: sh, bash, fish, zsh
Generate a completion script for a specific shell.
This setting is optional.
--log-level all | trace | debug | info | warning | error | fatal | none
One of the following: all, trace, debug, info, warning, error, fatal, none
Sets the minimum log level for a command.
This setting is optional.
(-h, --help)
A true or false value.
Show the help documentation for a command.
This setting is optional.
--wizard
A true or false value.
Start wizard mode for a command.
This setting is optional.
--version
A true or false value.
Show the version of the application.
This setting is optional.