mirror of
https://github.com/golang/go
synced 2024-11-22 00:24:41 -07:00
parent
6dced6d992
commit
3975b9910c
@ -567,7 +567,7 @@ func Var(value Value, name string, usage string) {
|
|||||||
// returns the error.
|
// returns the error.
|
||||||
func (f *FlagSet) failf(format string, a ...interface{}) os.Error {
|
func (f *FlagSet) failf(format string, a ...interface{}) os.Error {
|
||||||
err := fmt.Errorf(format, a...)
|
err := fmt.Errorf(format, a...)
|
||||||
fmt.Println(errc)
|
fmt.Fprintln(os.Stderr, err)
|
||||||
if f == commandLine {
|
if f == commandLine {
|
||||||
Usage()
|
Usage()
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user