From 9aba3c42c5b88d414ba6599101dbe0a7e60d328a 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 b790d6a89..70b134359 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"