Skip to content

Command::hide_possible_values

since 0.1.0

Tells clap not to print possible values when displaying help information.

name = "prog"
hide-possible-values = true
[args]
mode = { long = "mode", value-parser = ["fast", "slow"], action = "set" }
Terminal window
prog --help
Terminal window
Usage: prog [OPTIONS]
Options:
--mode <mode>
-h, --help Print help