Skip to content

Arg::ignore_case

since 0.1.0

Match values against PossibleValuesParser without matching case.

name = "prog"
[args]
option = { short = 'o', long = "option", action = "set", ignore-case = true, num-args = "1..", value-parser = ["test123", "test321"] }
Terminal window
prog --option TeSt123 teST123 tESt321
Terminal window
claptrap_option=('TeSt123' 'teST123' 'tESt321')
name = "prog"
[args]
option = { long = "option", action = "set", ignore-case = true, value-parser = ["test123"] }
Terminal window
prog --option TeSt123
Terminal window
claptrap_option='TeSt123'