Recognize -version

This commit is contained in:
Mitchell Hashimoto 2014-07-13 10:37:25 -07:00
parent 3f803cb75c
commit 3a8606c117
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func wrappedMain() int {
// just show the version.
args := os.Args[1:]
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)