Command::disable_help_flag
disable_help_flag
Section titled “disable_help_flag ”Disables -h and --help flag.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”name = "myprog"disable-help-flag = true[args]help = { long = "help", action = "help", help = "Print version" }name: myprogdisable-help-flag: trueargs: help: long: help action: help help: Print version{ "name": "myprog", "disable-help-flag": true, "args": { "help": { "long": "help", "action": "help", "help": "Print version" } }}myprog -hOutput
Section titled “Output”error: unexpected argument '-h' found
Usage: myprog
For more information, try '--help'.Example 2
Section titled “Example 2”name = "myprog"disable-help-flag = true[args]help = { long = "help", action = "help", help = "Print version" }name: myprogdisable-help-flag: trueargs: help: long: help action: help help: Print version{ "name": "myprog", "disable-help-flag": true, "args": { "help": { "long": "help", "action": "help", "help": "Print version" } }}myprog --helpOutput
Section titled “Output”Usage: myprog
Options: --help Print version