From efbe3fc4042966e553c15ea9796133aa2fabcdb5 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 28 Apr 2015 12:57:44 -0400 Subject: [PATCH] Accept -version too --- cli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/main.go b/cli/main.go index afa08e63da..3d0ced3279 100644 --- a/cli/main.go +++ b/cli/main.go @@ -15,7 +15,7 @@ func RunCustom(args []string, commands map[string]cli.CommandFactory) int { // Get the command line args. We shortcut "--version" and "-v" to // just show the version. for _, arg := range args { - if arg == "-v" || arg == "--version" { + if arg == "-v" || arg == "-version" || arg == "--version" { newArgs := make([]string, len(args)+1) newArgs[0] = "version" copy(newArgs[1:], args)