diff options
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 194e254ec..b91790651 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -1,11 +1,11 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. +use crate::fs as deno_fs; use clap::App; use clap::AppSettings; use clap::Arg; use clap::ArgMatches; use clap::Shell; use clap::SubCommand; -use crate::fs as deno_fs; use deno::ModuleSpecifier; use log::Level; use std; @@ -61,7 +61,8 @@ fn add_run_args<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b> { .use_delimiter(true) .require_equals(true) .help("Allow file system read access"), - ).arg( + ) + .arg( Arg::with_name("allow-write") .long("allow-write") .min_values(0) @@ -69,7 +70,8 @@ fn add_run_args<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b> { .use_delimiter(true) .require_equals(true) .help("Allow file system write access"), - ).arg( + ) + .arg( Arg::with_name("allow-net") .long("allow-net") .min_values(0) @@ -77,28 +79,34 @@ fn add_run_args<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b> { .use_delimiter(true) .require_equals(true) .help("Allow network access"), - ).arg( + ) + .arg( Arg::with_name("allow-env") .long("allow-env") .help("Allow environment access"), - ).arg( + ) + .arg( Arg::with_name("allow-run") .long("allow-run") .help("Allow running subprocesses"), - ).arg( + ) + .arg( Arg::with_name("allow-hrtime") .long("allow-hrtime") .help("Allow high resolution time measurement"), - ).arg( + ) + .arg( Arg::with_name("allow-all") .short("A") .long("allow-all") .help("Allow all permissions"), - ).arg( + ) + .arg( Arg::with_name("no-prompt") .long("no-prompt") .help("Do not use prompts"), - ).arg( + ) + .arg( Arg::with_name("no-fetch") .long("no-fetch") .help("Do not download remote modules"), |