From b3a508c03e2c31135dcb39fa288a6482b3607249 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 22 Aug 2015 20:29:33 +0900 Subject: [PATCH] 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 --- src/cmd/compile/internal/gc/lex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } -- 2.50.0