diff --git a/src/flag/flag.go b/src/flag/flag.go index edde5282cf..358402345c 100644 --- a/src/flag/flag.go +++ b/src/flag/flag.go @@ -981,7 +981,8 @@ func commandLineUsage() { } // NewFlagSet returns a new, empty flag set with the specified name and -// error handling property. +// error handling property. If the name is not empty, it will be printed +// in the default usage message and in error messages. func NewFlagSet(name string, errorHandling ErrorHandling) *FlagSet { f := &FlagSet{ name: name,