Effect CommunityEC
Effect Community5mo ago
13 replies
danielo515

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
flag in a subcommand? It is very distracting. In fact, I was not seeing the only important optin of my subcommand
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.
Was this page helpful?