mirror of
https://github.com/golang/go
synced 2024-11-21 17:44:40 -07:00
parent
6dced6d992
commit
3975b9910c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user