• Russ Cox's avatar
    cmd/5l, cmd/6l, cmd/8l, cmd/cc, cmd/gc: new flag parsing · cbbc6a10
    Russ Cox authored
    This CL adds a flag parser that matches the semantics of Go's
    package flag. It also changes the linkers and compilers to use
    the new flag parser.
    
    Command lines that used to work, like
            8c -FVw
            6c -Dfoo
            5g -I/foo/bar
    now need to be split into separate arguments:
            8c -F -V -w
            6c -D foo
            5g -I /foo/bar
    The new spacing will work with both old and new tools.
    
    The new parser also allows = for arguments, as in
            6c -D=foo
            5g -I=/foo/bar
    but that syntax will not work with the old tools.
    
    In addition to matching standard Go binary flag parsing,
    the new flag parser generates more detailed usage messages
    and opens the door to long flag names.
    
    The recently added gc flag -= has been renamed -complete.
    
    R=remyoudompheng, daniel.morsing, minux.ma, iant
    CC=golang-dev
    https://golang.org/cl/7035043
    cbbc6a10
Name
Last commit
Last update
..
fmt Loading commit data...
utf Loading commit data...
Makefile Loading commit data...
_exits.c Loading commit data...
_p9dir.c Loading commit data...
argv0.c Loading commit data...
atoi.c Loading commit data...
await.c Loading commit data...
cleanname.c Loading commit data...
create.c Loading commit data...
ctime.c Loading commit data...
dirfstat.c Loading commit data...
dirfwstat.c Loading commit data...
dirstat.c Loading commit data...
dirwstat.c Loading commit data...
dup.c Loading commit data...
errstr.c Loading commit data...
exec.c Loading commit data...
execl.c Loading commit data...
exitcode.c Loading commit data...
exits.c Loading commit data...
flag.c Loading commit data...
fmtlock2.c Loading commit data...
getenv.c Loading commit data...
getfields.c Loading commit data...
getwd.c Loading commit data...
goos.c Loading commit data...
jmp.c Loading commit data...
main.c Loading commit data...
nan.c Loading commit data...
notify.c Loading commit data...
nulldir.c Loading commit data...
open.c Loading commit data...
readn.c Loading commit data...
rfork.c Loading commit data...
seek.c Loading commit data...
strecpy.c Loading commit data...
sysfatal.c Loading commit data...
time.c Loading commit data...
tokenize.c Loading commit data...
windows.c Loading commit data...