Arg::hide_default_value
hide_default_value
Section titled “hide_default_value ”Do not display the default value of the argument in the help message.
Example
Section titled “Example”name = "connect"[args]host = { long = "host", default-value = "localhost", action = "set", hide-default-value = true }
name: connectargs: host: long: host default-value: localhost action: set hide-default-value: true
{ "name": "connect", "args": { "host": { "long": "host", "default-value": "localhost", "action": "set", "hide-default-value": true } }}
connect --help
Output
Section titled “Output”Usage: connect [OPTIONS]
Options: --host <host> -h, --help Print help