From f7c5b098b92d65ecb4dd3414437d40276e6b1989 Mon Sep 17 00:00:00 2001 From: NickHackman Date: Wed, 17 Jun 2020 00:56:05 -0400 Subject: [PATCH] fix: duplicate flags in Flag Subcommand test --- tests/flag_subcommands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/flag_subcommands.rs b/tests/flag_subcommands.rs index efb10481..4eebdb0e 100644 --- a/tests/flag_subcommands.rs +++ b/tests/flag_subcommands.rs @@ -256,7 +256,7 @@ fn flag_subcommand_long_conflict_with_arg() { let _ = App::new("test") .subcommand(App::new("some").short_flag('a').long_flag("flag")) .arg(Arg::new("flag").long("flag")) - .get_matches_from(vec!["myprog", "--flag", "--flag"]); + .get_matches_from(vec!["myprog", "--flag"]); } #[test]