diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-03-28 16:05:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-28 16:05:41 -0400 |
commit | c25e262b04c15d4de7107cc131de467882e7dcec (patch) | |
tree | a5e2fd2ba73f9f8881d0ea9166c36958747b6f49 /cli/flags.rs | |
parent | 51abcd614731bdb47a79f9f0c0fed81ddb7a474a (diff) |
Merge the --recompile and --reload flags (#2003)
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index d6a63a9fb..e14077dae 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -16,7 +16,6 @@ pub struct DenoFlags { pub log_debug: bool, pub version: bool, pub reload: bool, - pub recompile: bool, pub allow_read: bool, pub allow_write: bool, pub allow_net: bool, @@ -83,9 +82,6 @@ fn set_recognized_flags( if matches.opt_present("reload") { flags.reload = true; } - if matches.opt_present("recompile") { - flags.recompile = true; - } if matches.opt_present("allow-read") { flags.allow_read = true; } @@ -154,11 +150,14 @@ pub fn set_flags( opts.optflag("", "allow-run", "Allow running subprocesses"); opts.optflag("A", "allow-all", "Allow all permissions"); opts.optflag("", "no-prompt", "Do not use prompts"); - opts.optflag("", "recompile", "Force recompilation of TypeScript code"); opts.optflag("h", "help", "Print this message"); opts.optflag("D", "log-debug", "Log debug output"); opts.optflag("v", "version", "Print the version"); - opts.optflag("r", "reload", "Reload cached remote resources"); + opts.optflag( + "r", + "reload", + "Reload source code cache (recompile TypeScript)", + ); opts.optflag("", "v8-options", "Print V8 command line options"); opts.optflag("", "types", "Print runtime TypeScript declarations"); opts.optflag("", "prefetch", "Prefetch the dependencies"); |