From 45f599791ef25a53baf490c508fdd2fa8cb3bcf0 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Wed, 11 Mar 2015 16:33:55 -0700 Subject: [PATCH] main: do not process -v or --version after a '--' --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index b790d6a893..70b134359f 100644 --- a/main.go +++ b/main.go @@ -19,6 +19,9 @@ func realMain() int { // just show the version. args := os.Args[1:] for _, arg := range args { + if arg == "--" { + break + } if arg == "-v" || arg == "--version" { newArgs := make([]string, len(args)+1) newArgs[0] = "version"