You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: claptests/src/main.rs
+1-1
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ fn main() {
30
30
.help("tests positionals"))
31
31
.args(vec![
32
32
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"]),
34
34
Arg::new("positional2").index(2).help("tests positionals with exclusions and multiple"),
35
35
Arg::new("option3").takes_value(true).short("O").possible_values(vec!["fast","slow"]).help("test options with specific value sets").requires("positional3"),
36
36
Arg::new("positional3").index(3).multiple(true).possible_values(vec!["vi","emacs"]).help("tests positionals with specific value sets")
0 commit comments