Skip to content

Commit bdb0e88

Browse files
committed
fix(tests): add missing .takes_value(true) to option2
1 parent e869100 commit bdb0e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

claptests/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn main() {
3030
.help("tests positionals"))
3131
.args(vec![
3232
Arg::new("flag2").short("F").mutually_excludes("flag").help("tests flags with exclusions").requires("option2"),
33-
Arg::new("option2").long("long-option-2").mutually_excludes("option").help("tests long options with exclusions and requirements").requires_all(vec!["positional", "positional2"]),
33+
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"]),
3434
Arg::new("positional2").index(2).help("tests positionals with exclusions and multiple"),
3535
Arg::new("option3").takes_value(true).short("O").possible_values(vec!["fast", "slow"]).help("test options with specific value sets").requires("positional3"),
3636
Arg::new("positional3").index(3).multiple(true).possible_values(vec!["vi", "emacs"]).help("tests positionals with specific value sets")

0 commit comments

Comments
 (0)