• Rob Pike's avatar
    flag: disallow setting flags multiple times · 8c296333
    Rob Pike authored
    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
    8c296333
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...