Skip to content

Commit

Permalink
imp: adds ArgGroup::multiple to the supported YAML fields for buildin…
Browse files Browse the repository at this point in the history
…g ArgGroups from YAML

Closes #840
  • Loading branch information
kbknapp committed Feb 3, 2017
1 parent 74648c9 commit d859003
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/args/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ impl<'a> From<&'a BTreeMap<Yaml, Yaml>> for ArgGroup<'a> {
for (k, v) in group_settings.iter() {
a = match k.as_str().unwrap() {
"required" => a.required(v.as_bool().unwrap()),
"multiple" => a.multiple(v.as_bool().unwrap()),
"args" => yaml_vec_or_str!(v, a, arg),
"arg" => {
if let Some(ys) = v.as_str() {
Expand Down

0 comments on commit d859003

Please sign in to comment.