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 | 8c29633368994eb56f19d9d15f1a3433f5e9306a (patch) | |
| tree | e110b07d1ddbd82553cf44196d839250370d6339 /src/encoding/gob/decoder.go | |
| parent | 3c5fd98918e0c1c22566b19769a0a370b1321737 (diff) | |
| download | go-8c29633368994eb56f19d9d15f1a3433f5e9306a.tar.xz | |
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 #8960.
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/156390043
Diffstat (limited to 'src/encoding/gob/decoder.go')
0 files changed, 0 insertions, 0 deletions
