summaryrefslogtreecommitdiff
path: root/cli/flags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/flags.rs')
-rw-r--r--cli/flags.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/flags.rs b/cli/flags.rs
index d66c9528c..380c87b90 100644
--- a/cli/flags.rs
+++ b/cli/flags.rs
@@ -22,6 +22,7 @@ pub struct DenoFlags {
pub allow_run: bool,
pub allow_high_precision: bool,
pub no_prompts: bool,
+ pub no_fetch: bool,
pub v8_flags: Option<Vec<String>>,
}
@@ -71,6 +72,10 @@ pub fn create_cli_app<'a, 'b>() -> App<'a, 'b> {
.long("no-prompt")
.help("Do not use prompts"),
).arg(
+ Arg::with_name("no-fetch")
+ .long("no-fetch")
+ .help("Do not download remote modules"),
+ ).arg(
Arg::with_name("log-debug")
.short("D")
.long("log-debug")
@@ -242,6 +247,9 @@ pub fn parse_flags(matches: ArgMatches) -> DenoFlags {
if matches.is_present("no-prompt") {
flags.no_prompts = true;
}
+ if matches.is_present("no-fetch") {
+ flags.no_fetch = true;
+ }
if matches.is_present("v8-options") {
let v8_flags = svec!["deno", "--help"];
flags.v8_flags = Some(v8_flags);