From: Brad Fitzpatrick Date: Sat, 22 Aug 2015 11:29:33 +0000 (+0900) Subject: cmd/compile: in usage messages, name the binary "compile" instead of "Xg" X-Git-Tag: go1.6beta1~1298 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b3a508c03e2c31135dcb39fa288a6482b3607249;p=gostls13.git cmd/compile: in usage messages, name the binary "compile" instead of "Xg" Fixes #12227 Change-Id: I7c1b93e50736185a641fb637000aae2f15bc04ed Reviewed-on: https://go-review.googlesource.com/13820 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot Reviewed-by: Josh Bleecher Snyder --- diff --git a/src/cmd/compile/internal/gc/lex.go b/src/cmd/compile/internal/gc/lex.go index 606298b6e6..d6019b36ab 100644 --- a/src/cmd/compile/internal/gc/lex.go +++ b/src/cmd/compile/internal/gc/lex.go @@ -85,7 +85,7 @@ const ( ) func usage() { - fmt.Printf("usage: %cg [options] file.go...\n", Thearch.Thechar) + fmt.Printf("usage: compile [options] file.go...\n") obj.Flagprint(1) Exit(2) } @@ -111,7 +111,7 @@ func doversion() { if p != "" { sep = " " } - fmt.Printf("%cg version %s%s%s\n", Thearch.Thechar, obj.Getgoversion(), sep, p) + fmt.Printf("compile version %s%s%s\n", obj.Getgoversion(), sep, p) os.Exit(0) }