diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2018-09-24 21:33:50 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-09-24 15:33:50 -0400 |
commit | 3fe4be07ca19b40a2444b714f5927ff155d66fed (patch) | |
tree | ec30d7f4a8f5014917058de8aebf50031bdca796 /src/flags.rs | |
parent | 17a7b03d1b86b3519e611aa855f561352075a954 (diff) |
Add flag --recompile (#801)
Diffstat (limited to 'src/flags.rs')
-rw-r--r-- | src/flags.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/flags.rs b/src/flags.rs index 102fc7f8e..ceeb9e564 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -18,6 +18,7 @@ pub struct DenoFlags { pub log_debug: bool, pub version: bool, pub reload: bool, + pub recompile: bool, pub allow_write: bool, pub allow_net: bool, pub allow_env: bool, @@ -30,6 +31,7 @@ pub fn print_usage() { --allow-write Allow file system write access. --allow-net Allow network access. --allow-env Allow environment access. +--recompile Force recompilation of TypeScript code. -v or --version Print the version. -r or --reload Reload cached remote resources. -D or --log-debug Log debug output. @@ -52,6 +54,7 @@ pub fn set_flags(args: Vec<String>) -> (DenoFlags, Vec<String>) { "--log-debug" => flags.log_debug = true, "--version" => flags.version = true, "--reload" => flags.reload = true, + "--recompile" => flags.recompile = true, "--allow-write" => flags.allow_write = true, "--allow-net" => flags.allow_net = true, "--allow-env" => flags.allow_env = true, |