diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-04-27 20:19:50 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-27 11:19:50 -0700 |
commit | 02596c08bdedebb7ffb53ead9cae2bd6bf98c238 (patch) | |
tree | 9e0d4264acd38092782c1a8405796660eddd40bb | |
parent | 78bce41c1484adfc291626993cc2e3636f7bd640 (diff) |
disable --version flag from deno version (#2226)
-rw-r--r-- | cli/flags.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 76dbae30b..2b0b37b9a 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -90,8 +90,11 @@ pub fn create_cli_app<'a, 'b>() -> App<'a, 'b> { .use_delimiter(true) .require_equals(true) .help("Set V8 command line options"), - ).subcommand(SubCommand::with_name("version").about("Print the version")) - .subcommand( + ).subcommand( + SubCommand::with_name("version") + .setting(AppSettings::DisableVersion) + .about("Print the version"), + ).subcommand( SubCommand::with_name("fetch") .setting(AppSettings::DisableVersion) .about("Fetch the dependencies") |