From 02596c08bdedebb7ffb53ead9cae2bd6bf98c238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 27 Apr 2019 20:19:50 +0200 Subject: [PATCH] disable --version flag from deno version (#2226) --- cli/flags.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cli/flags.rs b/cli/flags.rs index 76dbae30b8..2b0b37b9a8 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")