summaryrefslogtreecommitdiff
path: root/cli/flags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/flags.rs')
-rw-r--r--cli/flags.rs10
1 files changed, 10 insertions, 0 deletions
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<SocketAddr>,
pub seed: Option<u64>,
pub v8_flags: Option<Vec<String>>,
+ pub unstable: bool,
pub lock: Option<String>,
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::<u64>().unwrap();
@@ -920,6 +925,11 @@ fn run_test_args<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b> {
.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")
.value_name("NUMBER")