mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
test(Yaml): fixes yaml tests
This commit is contained in:
parent
f17e150894
commit
4192e1acea
2 changed files with 5 additions and 5 deletions
|
@ -164,11 +164,11 @@ impl<'a, 'b> Arg<'a, 'b> {
|
|||
"short" => a.short(v.as_str().unwrap()),
|
||||
"long" => a.long(v.as_str().unwrap()),
|
||||
"help" => a.help(v.as_str().unwrap()),
|
||||
"required" => a.is_set(ArgSettings::Required)(v.as_bool().unwrap()),
|
||||
"takes_value" => a.is_set(ArgSettings::TakesValue)(v.as_bool().unwrap()),
|
||||
"required" => a.required(v.as_bool().unwrap()),
|
||||
"takes_value" => a.takes_value(v.as_bool().unwrap()),
|
||||
"index" => a.index(v.as_i64().unwrap() as u8),
|
||||
"global" => a.is_set(ArgSettings::Global)(v.as_bool().unwrap()),
|
||||
"multiple" => a.is_set(ArgSettings::Multiple)(v.as_bool().unwrap()),
|
||||
"global" => a.global(v.as_bool().unwrap()),
|
||||
"multiple" => a.multiple(v.as_bool().unwrap()),
|
||||
"empty_values" => a.empty_values(v.as_bool().unwrap()),
|
||||
"group" => a.group(v.as_str().unwrap()),
|
||||
"number_of_values" => a.number_of_values(v.as_i64().unwrap() as u8),
|
||||
|
|
|
@ -95,7 +95,7 @@ impl<'a> ArgGroup<'a> {
|
|||
|
||||
for (k, v) in group_settings.iter() {
|
||||
a = match k.as_str().unwrap() {
|
||||
"required" => a.is_set(ArgSettings::Required)(v.as_bool().unwrap()),
|
||||
"required" => a.required(v.as_bool().unwrap()),
|
||||
"args" => {
|
||||
for ys in v.as_vec().unwrap() {
|
||||
if let Some(s) = ys.as_str() {
|
||||
|
|
Loading…
Reference in a new issue