mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
fix(tests): add missing .takes_value(true) to option2
This commit is contained in:
parent
e869100423
commit
bdb0e88f69
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ fn main() {
|
|||
.help("tests positionals"))
|
||||
.args(vec![
|
||||
Arg::new("flag2").short("F").mutually_excludes("flag").help("tests flags with exclusions").requires("option2"),
|
||||
Arg::new("option2").long("long-option-2").mutually_excludes("option").help("tests long options with exclusions and requirements").requires_all(vec!["positional", "positional2"]),
|
||||
Arg::new("option2").takes_value(true).long("long-option-2").mutually_excludes("option").help("tests long options with exclusions and requirements").requires_all(vec!["positional", "positional2"]),
|
||||
Arg::new("positional2").index(2).help("tests positionals with exclusions and multiple"),
|
||||
Arg::new("option3").takes_value(true).short("O").possible_values(vec!["fast", "slow"]).help("test options with specific value sets").requires("positional3"),
|
||||
Arg::new("positional3").index(3).multiple(true).possible_values(vec!["vi", "emacs"]).help("tests positionals with specific value sets")
|
||||
|
|
Loading…
Add table
Reference in a new issue