diff options
author | Rob Pike <r@golang.org> | 2014-10-19 10:33:22 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2014-10-19 10:33:22 -0700 |
commit | f4460cbe900153a2cd70f1044f309e83439e4159 (patch) | |
tree | bda970bca9f0e4f24acedbad2137bafe349f6a65 /doc/go1.4.txt | |
parent | f529378d4e294b023d1f27f2066ba9d0a3686e19 (diff) | |
download | go-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/go1.4.txt')
0 files changed, 0 insertions, 0 deletions