summaryrefslogtreecommitdiff
path: root/cli/flags.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-25 09:31:54 -0400
committerGitHub <noreply@github.com>2020-04-25 09:31:54 -0400
commit0c47cd67850e4c195212c8edfcb3a62b8435ed3a (patch)
treeb397da0f498e76e078b6b79365388b31f2bd97ba /cli/flags.rs
parentb28e60ecaf5d48c36cb435361834f4884d9451c2 (diff)
introduce unstable flag, make a few things unstable (#4892)
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")