Command::ignore_errors
ignore_errors
Section titled “ignore_errors ”Try not to fail on parse errors, like missing option values.
Example
Section titled “Example”name = "cmd"ignore-errors = true[args]config = { short = 'c', long = "config", value-name = "FILE", help = "Sets a custom config file" }stuff = { short = 's', long = "stuff", value-name = "FILE", help = "Sets a custom stuff file" }f = { short = 'f', help = "Flag" }
name: cmdignore-errors: trueargs: config: short: c long: config value-name: FILE help: Sets a custom config file stuff: short: s long: stuff value-name: FILE help: Sets a custom stuff file f: short: f help: Flag
{ "name": "cmd", "ignore-errors": true, "args": { "config": { "short": "c", "long": "config", "value-name": "FILE", "help": "Sets a custom config file" }, "stuff": { "short": "s", "long": "stuff", "value-name": "FILE", "help": "Sets a custom stuff file" }, "f": { "short": "f", "help": "Flag" } }}
prog -c file -f -x
Output
Section titled “Output”claptrap_config='file'