diff options
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 400798cbd..2d71762ce 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -100,6 +100,7 @@ pub enum DenoSubcommand { no_run: bool, fail_fast: bool, quiet: bool, + terse: bool, allow_none: bool, include: Option<Vec<String>>, filter: Option<String>, @@ -1011,6 +1012,11 @@ fn test_subcommand<'a, 'b>() -> App<'a, 'b> { .takes_value(false), ) .arg( + Arg::with_name("terse") + .long("terse") + .help("UNSTABLE: Display one character per test instead of one line"), + ) + .arg( Arg::with_name("filter") .set(ArgSettings::AllowLeadingHyphen) .long("filter") @@ -1699,6 +1705,7 @@ fn test_parse(flags: &mut Flags, matches: &clap::ArgMatches) { let fail_fast = matches.is_present("fail-fast"); let allow_none = matches.is_present("allow-none"); let quiet = matches.is_present("quiet"); + let terse = matches.is_present("terse"); let filter = matches.value_of("filter").map(String::from); let shuffle = if matches.is_present("shuffle") { @@ -1753,6 +1760,7 @@ fn test_parse(flags: &mut Flags, matches: &clap::ArgMatches) { doc, fail_fast, quiet, + terse, include, filter, shuffle, @@ -3391,6 +3399,7 @@ mod tests { filter: Some("- foo".to_string()), allow_none: true, quiet: false, + terse: false, include: Some(svec!["dir1/", "dir2/"]), shuffle: None, concurrent_jobs: 1, |