Arg::ignore_case
ignore_case
Section titled “ignore_case ”Match values against PossibleValuesParser without matching case.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”name = "prog"[args]option = { short = 'o', long = "option", action = "set", ignore-case = true, num-args = "1..", value-parser = ["test123", "test321"] }
name: progargs: option: short: o long: option action: set ignore-case: true num-args: 1.. value-parser: - test123 - test321
{ "name": "prog", "args": { "option": { "short": "o", "long": "option", "action": "set", "ignore-case": true, "num-args": "1..", "value-parser": [ "test123", "test321" ] } }}
prog --option TeSt123 teST123 tESt321
Output
Section titled “Output”claptrap_option=('TeSt123' 'teST123' 'tESt321')
Example 2
Section titled “Example 2”name = "prog"[args]option = { long = "option", action = "set", ignore-case = true, value-parser = ["test123"] }
name: progargs: option: long: option action: set ignore-case: true value-parser: - test123
{ "name": "prog", "args": { "option": { "long": "option", "action": "set", "ignore-case": true, "value-parser": [ "test123" ] } }}
prog --option TeSt123
Output
Section titled “Output”claptrap_option='TeSt123'