We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e312f2 commit e9f8d67Copy full SHA for e9f8d67
src/flag/flag.go
@@ -314,6 +314,9 @@ const (
314
315
// A FlagSet represents a set of defined flags. The zero value of a FlagSet
316
// has no name and has ContinueOnError error handling.
317
+//
318
+// Flag names must be unique within a FlagSet. An attempt to define a flag whose
319
+// name is already in use will cause a panic.
320
type FlagSet struct {
321
// Usage is the function called when an error occurs while parsing flags.
322
// The field is a function (not a method) that may be changed to point to
0 commit comments