• Rob Pike's avatar
    flags: allow distinct sets of flags. · f4fe688b
    Rob Pike authored
    A FlagSet is an independent set of flags that may be used,
    for example, to provide flag processing for subcommands
    in a CLI.  The standard, os.Args-derived set of flags is a
    global but non-exported FlagSet and the standard functions
    are wrappers for methods of that FlagSet.
    
    Allow the programmer to control whether the program
    exits if there is a parse error.  For the default set, the behavior
    remains to exit on error.
    
    The handling of Usage is odd due to backward compatibility.
    
    R=golang-dev, bradfitz, r, bradfitz
    CC=golang-dev
    https://golang.org/cl/4517092
    f4fe688b
Name
Last commit
Last update
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...