diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-07-31 17:11:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-31 17:11:37 -0400 |
commit | 3971dcfe10b94e901a224b5328a9dafd1e2ecc08 (patch) | |
tree | e347644a90094774e56e9315119c31594ca60796 /cli/flags.rs | |
parent | b3541c38f5672ffb4a29d66dca19d88b9ecae478 (diff) |
Use system rustfmt instead of fixed binary (#2701)
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"), |