Skip to content

Commit

Permalink
fix(tests): add missing .takes_value(true) to option2
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Apr 2, 2015
1 parent e869100 commit bdb0e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion claptests/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bdb0e88

Please sign in to comment.