From bdb0e88f696c8595c3def3bfb0e52d538c7be085 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Thu, 2 Apr 2015 14:47:50 -0400 Subject: [PATCH] fix(tests): add missing .takes_value(true) to option2 --- claptests/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/claptests/src/main.rs b/claptests/src/main.rs index 181debfab68..18b6187a541 100644 --- a/claptests/src/main.rs +++ b/claptests/src/main.rs @@ -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")