diff --git a/src/pkg/flag/flag.go b/src/pkg/flag/flag.go index ec254fd888d..e5d2f94e9b5 100644 --- a/src/pkg/flag/flag.go +++ b/src/pkg/flag/flag.go @@ -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 {