Skip to content

Commit

Permalink
flag: add comment stating that Set is called in sequence across the c…
Browse files Browse the repository at this point in the history
…ommand line

No code changes.

Change-Id: I3b78b1048318a4b80747fde8cab919282fc444a8
Reviewed-on: https://go-review.googlesource.com/12285
Reviewed-by: Andrew Gerrand <[email protected]>
  • Loading branch information
robpike committed Jul 16, 2015
1 parent 19916e4 commit b0834b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flag/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ func (d *durationValue) String() string { return (*time.Duration)(d).String() }
// If a Value has an IsBoolFlag() bool method returning true,
// the command-line parser makes -name equivalent to -name=true
// rather than using the next command-line argument.
//
// Set is called once, in command line order, for each flag present.
type Value interface {
String() string
Set(string) error
Expand Down

0 comments on commit b0834b5

Please sign in to comment.