diff --git a/src/args/arg.rs b/src/args/arg.rs index cc4bf128902..50a30abb7ac 100644 --- a/src/args/arg.rs +++ b/src/args/arg.rs @@ -139,6 +139,7 @@ impl<'a, 'b> Arg<'a, 'b> { "conflicts_with" => yaml_vec_or_str!(v, a, conflicts_with), "overrides_with" => yaml_vec_or_str!(v, a, overrides_with), "possible_values" => yaml_vec_or_str!(v, a, possible_value), + "case_insensitive" => yaml_to_bool!(a, v, case_insensitive), "required_unless_one" => yaml_vec_or_str!(v, a, required_unless), "required_unless_all" => { a = yaml_vec_or_str!(v, a, required_unless); diff --git a/tests/app.yml b/tests/app.yml index 97d36232dfd..850bb822aef 100644 --- a/tests/app.yml +++ b/tests/app.yml @@ -90,6 +90,11 @@ args: multiple: true help: Tests 3 max vals max_values: 3 + - case_insensitive: + help: Test case_insensitive + possible_values: [test123, test321] + case_insensitive: true + arg_groups: - test: args: