Command::disable_colored_help
disable_colored_help
Section titled “disable_colored_help ”Disables colorized help messages.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”name = "myprog"disable-colored-help = true[args]cfg = { long = "config" }
name: myprogdisable-colored-help: trueargs: cfg: long: config
{ "name": "myprog", "disable-colored-help": true, "args": { "cfg": { "long": "config" } }}
myprog --help
Output
Section titled “Output”Usage: myprog [OPTIONS]
Options: --config <cfg> -h, --help Print help
Example 2
Section titled “Example 2”name = "myprog"disable-colored-help = true[args]cfg = { long = "config" }
name: myprogdisable-colored-help: trueargs: cfg: long: config
{ "name": "myprog", "disable-colored-help": true, "args": { "cfg": { "long": "config" } }}
myprog --confg
Output
Section titled “Output”error: unexpected argument '--confg' found
tip: a similar argument exists: '--config'
Usage: myprog --config <cfg>
For more information, try '--help'.