diff options
author | Rob Pike <r@golang.org> | 2015-07-16 14:30:15 +1000 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2015-07-16 05:33:47 +0000 |
commit | b0834b5ea2cc17468c928c2e611dc2b9c0a4595e (patch) | |
tree | b94d372854bbb8f89f8c52a3669c4cb73758c6e6 /src/flag | |
parent | 19916e453e293b4d37e481f2b13246682d1667c3 (diff) | |
download | go-b0834b5ea2cc17468c928c2e611dc2b9c0a4595e.tar.gz go-b0834b5ea2cc17468c928c2e611dc2b9c0a4595e.zip |
flag: add comment stating that Set is called in sequence across the command line
No code changes.
Change-Id: I3b78b1048318a4b80747fde8cab919282fc444a8
Reviewed-on: https://go-review.googlesource.com/12285
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/flag')
-rw-r--r-- | src/flag/flag.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flag/flag.go b/src/flag/flag.go index cf6af4e946..3abc80e9c6 100644 --- a/src/flag/flag.go +++ b/src/flag/flag.go @@ -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 |