test: Get benches passing

This commit is contained in:
Ed Page 2021-11-22 16:09:39 -06:00
parent b95ced6fb3
commit 4c7d29f464
2 changed files with 6 additions and 8 deletions

View file

@ -17,9 +17,11 @@ macro_rules! create_app {
Arg::from("[flag2] -F 'tests flags with exclusions'") Arg::from("[flag2] -F 'tests flags with exclusions'")
.conflicts_with("flag") .conflicts_with("flag")
.requires("option2"), .requires("option2"),
Arg::from("--long-option-2 [option2] 'tests long options with exclusions'") Arg::from(
.conflicts_with("option") "[option2] --long-option-2 [option2] 'tests long options with exclusions'",
.requires("positional2"), )
.conflicts_with("option")
.requires("positional2"),
Arg::from("[positional2] 'tests positionals with exclusions'"), Arg::from("[positional2] 'tests positionals with exclusions'"),
Arg::from("-O --Option [option3] 'tests options with specific value sets'") Arg::from("-O --Option [option3] 'tests options with specific value sets'")
.possible_values(OPT3_VALS), .possible_values(OPT3_VALS),

View file

@ -47,7 +47,6 @@ fn app_example3<'c>() -> App<'c> {
.long("config"), .long("config"),
Arg::new("input") Arg::new("input")
.help("the input file to use") .help("the input file to use")
.index(1)
.setting(ArgSettings::Required), .setting(ArgSettings::Required),
]) ])
.arg("--license 'display the license file'") .arg("--license 'display the license file'")
@ -86,9 +85,7 @@ fn app_example5<'c>() -> App<'c> {
.help("turns up the awesome") .help("turns up the awesome")
.short('a') .short('a')
.long("awesome") .long("awesome")
.setting(ArgSettings::MultipleOccurrences) .setting(ArgSettings::MultipleOccurrences),
.requires("config")
.conflicts_with("output"),
) )
} }
@ -99,7 +96,6 @@ fn app_example6<'c>() -> App<'c> {
.help("the input file to use") .help("the input file to use")
.index(1) .index(1)
.requires("config") .requires("config")
.conflicts_with("output")
.setting(ArgSettings::Required), .setting(ArgSettings::Required),
) )
.arg(Arg::new("config").help("the config file to use").index(2)) .arg(Arg::new("config").help("the config file to use").index(2))