mirror of
https://github.com/golang/go
synced 2024-09-25 15:10:11 -06:00
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 <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
5b92028155
commit
b3a508c03e
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user