summaryrefslogtreecommitdiff
path: root/cli/flags.rs
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-10-23 08:35:43 +0900
committerRy Dahl <ry@tinyclouds.org>2019-10-22 19:35:43 -0400
commit2804ba8674150b80ee181cc3869e1fa12de661d3 (patch)
tree494a96b2afe927cbe8eff6c941ca8e0afbd39446 /cli/flags.rs
parentedd6a90da855619feecb05c2cf87448b0c23da86 (diff)
remove --no-prompt flag, fail on missing permissions (#3183)
Diffstat (limited to 'cli/flags.rs')
-rw-r--r--cli/flags.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/cli/flags.rs b/cli/flags.rs
index bd57187d6..ca9887351 100644
--- a/cli/flags.rs
+++ b/cli/flags.rs
@@ -119,11 +119,6 @@ fn add_run_args<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b> {
.help("Allow all permissions"),
)
.arg(
- Arg::with_name("no-prompt")
- .long("no-prompt")
- .help("Do not use prompts"),
- )
- .arg(
Arg::with_name("no-fetch")
.long("no-fetch")
.help("Do not download remote modules"),
@@ -707,9 +702,6 @@ fn parse_run_args(mut flags: DenoFlags, matches: &ArgMatches) -> DenoFlags {
flags.allow_write = true;
flags.allow_hrtime = true;
}
- if matches.is_present("no-prompt") {
- flags.no_prompts = true;
- }
if matches.is_present("no-fetch") {
flags.no_fetch = true;
}