Command::hide
since 0.1.0
Terminal window
Terminal window
Specifies that this subcommand should be hidden from help messages.
Example
Section titled “Example”name = "myprog"[[subcommands]]name = "beta"about = "Some help and text"[[subcommands]]name = "alpha"about = "I should be hidden!"hide = true
name: myprogsubcommands:- name: beta about: Some help and text- name: alpha about: I should be hidden! hide: true
{ "name": "myprog", "subcommands": [ { "name": "beta", "about": "Some help and text" }, { "name": "alpha", "about": "I should be hidden!", "hide": true } ]}
myprog --help
Output
Section titled “Output”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