summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2014-10-19 10:33:22 -0700
committerRob Pike <r@golang.org>2014-10-19 10:33:22 -0700
commitf4460cbe900153a2cd70f1044f309e83439e4159 (patch)
treebda970bca9f0e4f24acedbad2137bafe349f6a65 /doc
parentf529378d4e294b023d1f27f2066ba9d0a3686e19 (diff)
downloadgo-f4460cbe900153a2cd70f1044f309e83439e4159.tar.gz
flag: disallow setting flags multiple times
This is a day 1 error in the flag package: It did not check that a flag was set at most once on the command line. Because user-defined flags may have more general properties, the check applies only to the standard flag types in this package: bool, string, etc. Fixes issue 8960. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://codereview.appspot.com/156390043
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions