From 0c47cd67850e4c195212c8edfcb3a62b8435ed3a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 25 Apr 2020 09:31:54 -0400 Subject: introduce unstable flag, make a few things unstable (#4892) --- cli/flags.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cli/flags.rs') diff --git a/cli/flags.rs b/cli/flags.rs index 772c719a8..b3ada1318 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -112,6 +112,7 @@ pub struct Flags { pub inspect_brk: Option, pub seed: Option, pub v8_flags: Option>, + pub unstable: bool, pub lock: Option, pub lock_write: bool, @@ -498,6 +499,10 @@ fn run_test_args_parse(flags: &mut Flags, matches: &clap::ArgMatches) { flags.cached_only = true; } + if matches.is_present("unstable") { + flags.unstable = true; + } + if matches.is_present("seed") { let seed_string = matches.value_of("seed").unwrap(); let seed = seed_string.parse::().unwrap(); @@ -919,6 +924,11 @@ fn run_test_args<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b> { .long("cached-only") .help("Require that remote dependencies are already cached"), ) + .arg( + Arg::with_name("unstable") + .long("unstable") + .help("Enable unstable APIs"), + ) .arg( Arg::with_name("seed") .long("seed") -- cgit v1.2.3