1
0
mirror of https://github.com/golang/go synced 2024-11-24 17:00:01 -07:00

flag: fix build

R=r
CC=golang-dev
https://golang.org/cl/4543064
This commit is contained in:
Andrew Gerrand 2011-05-22 11:55:02 +10:00
parent 6dced6d992
commit 3975b9910c

View File

@ -567,7 +567,7 @@ func Var(value Value, name string, usage string) {
// returns the error.
func (f *FlagSet) failf(format string, a ...interface{}) os.Error {
err := fmt.Errorf(format, a...)
fmt.Println(errc)
fmt.Fprintln(os.Stderr, err)
if f == commandLine {
Usage()
} else {