Skip to content

Arg::hide_default_value

since 0.1.0

Do not display the default value of the argument in the help message.

name = "connect"
[args]
host = { long = "host", default-value = "localhost", action = "set", hide-default-value = true }
Terminal window
connect --help
Terminal window
Usage: connect [OPTIONS]
Options:
--host <host>
-h, --help Print help