Skip to content

Commit

Permalink
Merge branch 'master' of github.com:clap-rs/clap
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Nov 16, 2018
2 parents 24cb574 + d40ae2a commit 3294d18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/args/arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions tests/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3294d18

Please sign in to comment.