Skip to content

Command::hide

since 0.1.0

Specifies that this subcommand should be hidden from help messages.

name = "myprog"
[[subcommands]]
name = "beta"
about = "Some help and text"
[[subcommands]]
name = "alpha"
about = "I should be hidden!"
hide = true
Terminal window
myprog --help
Terminal window
Usage: myprog [COMMAND]
Commands:
beta Some help and text
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help