1
0
mirror of https://github.com/golang/go synced 2024-11-23 16:50:06 -07:00

flag: document use of FlagSet name parameter

Fixes #24225

Change-Id: I876ac1b9d3615283f7b88cfa0b965ef81a57f056
Reviewed-on: https://go-review.googlesource.com/102955
Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
Ian Lance Taylor 2018-03-28 07:44:06 -07:00
parent ad638fbfb5
commit 70afd51ec5

View File

@ -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,