Command::color
color
Section titled “color ”Sets when to color output.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”name = "myprog"color = "never"[args]cfg = { long = "config" }
name: myprogcolor: neverargs: cfg: long: config
{ "name": "myprog", "color": "never", "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"color = "never"[args]cfg = { long = "config" }
name: myprogcolor: neverargs: cfg: long: config
{ "name": "myprog", "color": "never", "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'.