1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

disable --version flag from deno version (#2226)

This commit is contained in:
Bartek Iwańczuk 2019-04-27 20:19:50 +02:00 committed by Ryan Dahl
parent 78bce41c14
commit 02596c08bd

View file

@ -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")