1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:04:57 -07:00

go.tools/cmd/oracle: output help messages to stderr for consistency

Fixes golang/go#6838.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/36820043
This commit is contained in:
Shenghou Ma 2013-12-03 17:37:59 -05:00
parent 14cf5b0a28
commit 5d386107a0

View File

@ -91,8 +91,8 @@ func init() {
}
func printHelp() {
fmt.Println(helpMessage)
fmt.Println("Flags:")
fmt.Fprintln(os.Stderr, helpMessage)
fmt.Fprintln(os.Stderr, "Flags:")
flag.PrintDefaults()
}