diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-26 14:14:50 -0400 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-26 13:07:33 -0700 |
| commit | 6bbf0777b1d0f2b1b85cc9588da7e95e8f34c8d3 (patch) | |
| tree | 78f9a1d707cba5c25870339ee137c9e40e9f9881 | |
| parent | a99aaf5def7d2e223f8303e7a00bd9de4d3efdf6 (diff) | |
Remove broken feature: --deps
| -rw-r--r-- | js/main.ts | 8 | ||||
| -rw-r--r-- | src/flags.rs | 9 |
2 files changed, 1 insertions, 16 deletions
diff --git a/js/main.ts b/js/main.ts index 892a65044..50de2c26c 100644 --- a/js/main.ts +++ b/js/main.ts @@ -84,14 +84,6 @@ export default function denoMain() { os.exit(1); } - // handle `--deps` - if (startResMsg.depsFlag()) { - for (const dep of compiler.getModuleDependencies(inputFn, `${cwd}/`)) { - console.log(dep); - } - os.exit(0); - } - compiler.recompile = startResMsg.recompileFlag(); compiler.run(inputFn, `${cwd}/`); } 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() } ); |
