Skip to content

Command::disable_help_flag

since 0.1.0

Disables -h and --help flag.

name = "myprog"
disable-help-flag = true
[args]
help = { long = "help", action = "help", help = "Print version" }
Terminal window
myprog -h
Terminal window
error: unexpected argument '-h' found
Usage: myprog
For more information, try '--help'.
name = "myprog"
disable-help-flag = true
[args]
help = { long = "help", action = "help", help = "Print version" }
Terminal window
myprog --help
Terminal window
Usage: myprog
Options:
--help Print version