diff --git a/benches/03_complex.rs b/benches/03_complex.rs index 895baede..b149c2ad 100644 --- a/benches/03_complex.rs +++ b/benches/03_complex.rs @@ -17,9 +17,11 @@ macro_rules! create_app { Arg::from("[flag2] -F 'tests flags with exclusions'") .conflicts_with("flag") .requires("option2"), - Arg::from("--long-option-2 [option2] 'tests long options with exclusions'") - .conflicts_with("option") - .requires("positional2"), + Arg::from( + "[option2] --long-option-2 [option2] 'tests long options with exclusions'", + ) + .conflicts_with("option") + .requires("positional2"), Arg::from("[positional2] 'tests positionals with exclusions'"), Arg::from("-O --Option [option3] 'tests options with specific value sets'") .possible_values(OPT3_VALS), diff --git a/benches/04_new_help.rs b/benches/04_new_help.rs index 0523490d..f2f6e249 100644 --- a/benches/04_new_help.rs +++ b/benches/04_new_help.rs @@ -47,7 +47,6 @@ fn app_example3<'c>() -> App<'c> { .long("config"), Arg::new("input") .help("the input file to use") - .index(1) .setting(ArgSettings::Required), ]) .arg("--license 'display the license file'") @@ -86,9 +85,7 @@ fn app_example5<'c>() -> App<'c> { .help("turns up the awesome") .short('a') .long("awesome") - .setting(ArgSettings::MultipleOccurrences) - .requires("config") - .conflicts_with("output"), + .setting(ArgSettings::MultipleOccurrences), ) } @@ -99,7 +96,6 @@ fn app_example6<'c>() -> App<'c> { .help("the input file to use") .index(1) .requires("config") - .conflicts_with("output") .setting(ArgSettings::Required), ) .arg(Arg::new("config").help("the config file to use").index(2))