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 --helpOutput
Section titled “Output”Usage: myprog [OPTIONS]
Options: --config <cfg> -h, --help Print helpExample 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 --confgOutput
Section titled “Output”error: unexpected argument '--confg' found
tip: a similar argument exists: '--config'
Usage: myprog --config <cfg>
For more information, try '--help'.