mirror of
https://github.com/clap-rs/clap
synced 2024-11-14 00:27:13 +00:00
tests(Hidden Args): fixes tests to include hidden field
This commit is contained in:
parent
2cab4d0334
commit
c92a98fb67
3 changed files with 6 additions and 0 deletions
|
@ -57,6 +57,7 @@ mod test {
|
|||
requires: None,
|
||||
global: false,
|
||||
overrides: None,
|
||||
hidden: false,
|
||||
};
|
||||
|
||||
assert_eq!(&*format!("{}", f), "--flag");
|
||||
|
@ -71,6 +72,7 @@ mod test {
|
|||
requires: None,
|
||||
global: false,
|
||||
overrides: None,
|
||||
hidden: false,
|
||||
};
|
||||
|
||||
assert_eq!(&*format!("{}", f2), "-f");
|
||||
|
|
|
@ -93,6 +93,7 @@ mod test {
|
|||
global: false,
|
||||
validator: None,
|
||||
overrides: None,
|
||||
hidden: false,
|
||||
};
|
||||
|
||||
assert_eq!(&*format!("{}", o), "--option <opt>...");
|
||||
|
@ -119,6 +120,7 @@ mod test {
|
|||
global: false,
|
||||
validator: None,
|
||||
overrides: None,
|
||||
hidden: false,
|
||||
};
|
||||
|
||||
assert_eq!(&*format!("{}", o2), "-o <file> <name>");
|
||||
|
|
|
@ -72,6 +72,7 @@ mod test {
|
|||
global: false,
|
||||
validator: None,
|
||||
overrides: None,
|
||||
hidden: false,
|
||||
};
|
||||
|
||||
assert_eq!(&*format!("{}", p), "[pos]...");
|
||||
|
@ -92,6 +93,7 @@ mod test {
|
|||
global: false,
|
||||
validator: None,
|
||||
overrides: None,
|
||||
hidden: false,
|
||||
};
|
||||
|
||||
assert_eq!(&*format!("{}", p2), "<pos>");
|
||||
|
|
Loading…
Reference in a new issue