From: Rob Pike Date: Thu, 16 Jul 2015 04:30:15 +0000 (+1000) Subject: flag: add comment stating that Set is called in sequence across the command line X-Git-Tag: go1.5beta2~9 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b0834b5ea2cc17468c928c2e611dc2b9c0a4595e;p=gostls13.git 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 --- 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