summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-26 14:14:50 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-26 13:07:33 -0700
commit6bbf0777b1d0f2b1b85cc9588da7e95e8f34c8d3 (patch)
tree78f9a1d707cba5c25870339ee137c9e40e9f9881 /src
parenta99aaf5def7d2e223f8303e7a00bd9de4d3efdf6 (diff)
Remove broken feature: --deps
Diffstat (limited to 'src')
-rw-r--r--src/flags.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/flags.rs b/src/flags.rs
index 2a279ea9e..cd5284352 100644
--- a/src/flags.rs
+++ b/src/flags.rs
@@ -25,7 +25,6 @@ pub struct DenoFlags {
pub allow_write: bool,
pub allow_net: bool,
pub allow_env: bool,
- pub deps_flag: bool,
pub types_flag: bool,
}
@@ -70,7 +69,6 @@ pub fn set_flags(
opts.optflag("v", "version", "Print the version.");
opts.optflag("r", "reload", "Reload cached remote resources.");
opts.optflag("", "v8-options", "Print V8 command line options.");
- opts.optflag("", "deps", "Print module dependencies.");
opts.optflag("", "types", "Print runtime TypeScript declarations.");
let mut flags = DenoFlags::default();
@@ -106,9 +104,6 @@ pub fn set_flags(
if matches.opt_present("allow-env") {
flags.allow_env = true;
}
- if matches.opt_present("deps") {
- flags.deps_flag = true;
- }
if matches.opt_present("types") {
flags.types_flag = true;
}
@@ -148,15 +143,13 @@ fn test_set_flags_2() {
#[test]
fn test_set_flags_3() {
let (flags, rest, _) =
- set_flags(svec!["deno", "-r", "--deps", "script.ts", "--allow-write"])
- .unwrap();
+ set_flags(svec!["deno", "-r", "script.ts", "--allow-write"]).unwrap();
assert_eq!(rest, svec!["deno", "script.ts"]);
assert_eq!(
flags,
DenoFlags {
reload: true,
allow_write: true,
- deps_flag: true,
..DenoFlags::default()
}
);