summaryrefslogtreecommitdiff
path: root/cli/flags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/flags.rs')
-rw-r--r--cli/flags.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/cli/flags.rs b/cli/flags.rs
index 63d4c15e0..af7bc2a08 100644
--- a/cli/flags.rs
+++ b/cli/flags.rs
@@ -71,7 +71,6 @@ pub enum DenoSubcommand {
allow_none: bool,
include: Option<Vec<String>>,
filter: Option<String>,
- coverage: bool,
},
Types,
Upgrade {
@@ -107,6 +106,7 @@ pub struct Flags {
pub ca_file: Option<String>,
pub cached_only: bool,
pub config_path: Option<String>,
+ pub coverage: bool,
pub ignore: Vec<String>,
pub import_map_path: Option<String>,
pub inspect: Option<SocketAddr>,
@@ -585,9 +585,8 @@ fn test_parse(flags: &mut Flags, matches: &clap::ArgMatches) {
let filter = matches.value_of("filter").map(String::from);
let coverage = matches.is_present("coverage");
- // Coverage implies `--inspect`
if coverage {
- flags.inspect = Some("127.0.0.1:9229".parse::<SocketAddr>().unwrap());
+ flags.coverage = true;
}
let include = if matches.is_present("files") {
@@ -607,7 +606,6 @@ fn test_parse(flags: &mut Flags, matches: &clap::ArgMatches) {
include,
filter,
allow_none,
- coverage,
};
}
@@ -2857,7 +2855,6 @@ mod tests {
allow_none: true,
quiet: false,
include: Some(svec!["dir1/", "dir2/"]),
- coverage: false,
},
allow_net: true,
..Flags::default()
@@ -2877,7 +2874,6 @@ mod tests {
quiet: false,
filter: Some("foo".to_string()),
include: Some(svec!["dir1"]),
- coverage: false,
},
..Flags::default()
}
@@ -2897,7 +2893,6 @@ mod tests {
quiet: false,
filter: Some("- foo".to_string()),
include: Some(svec!["dir1"]),
- coverage: false,
},
..Flags::default()
}
@@ -2922,9 +2917,8 @@ mod tests {
quiet: false,
filter: None,
include: Some(svec!["dir1"]),
- coverage: true,
},
- inspect: Some("127.0.0.1:9229".parse::<SocketAddr>().unwrap()),
+ coverage: true,
unstable: true,
..Flags::default()
}