mirror of
https://github.com/golang/go
synced 2024-11-20 05:14:41 -07:00
cbbc6a102d
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 |
||
---|---|---|
.. | ||
cgen.c | ||
doc.go | ||
gc.h | ||
list.c | ||
Makefile | ||
mul.c | ||
peep.c | ||
reg.c | ||
sgen.c | ||
swt.c | ||
txt.c |