aboutsummaryrefslogtreecommitdiff
path: root/src/lib/flag.go
AgeCommit message (Collapse)Author
2009-05-05directory-per-package step 1: move files from lib/X.go to lib/X/X.goRob Pike
no substantive changes except: - new Makefiles, all auto-generated - go/src/lib/Makefile has been extensively edited R=rsc OCL=28310 CL=28310
2009-04-26flags.Usage() calls fmt.Fprintf() with incorrect argsBrendan O'Dea
R=r APPROVED=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27777 CL=27876
2009-04-15tweak flag commentRuss Cox
R=r DELTA=36 (1 added, 0 deleted, 35 changed) OCL=27484 CL=27522
2009-04-13lib miscRuss Cox
* exec.LookPath * flag.Args * os.Remove * strings.HasPrefix * strings.HasSuffix * syscall.Rmdir TBR=r DELTA=100 (100 added, 0 deleted, 0 changed) OCL=27373 CL=27392
2009-03-04flag: documentRob Pike
also write to stderr not stdout R=rsc DELTA=48 (38 added, 2 deleted, 8 changed) OCL=25729 CL=25733
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-02-16use proper strconv in string values.Rob Pike
make test a little stronger. R=rsc DELTA=94 (27 added, 39 deleted, 28 changed) OCL=25085 CL=25087
2009-02-16make interface to the flags themselves more public.Rob Pike
add visitor functions to scan the flags. add a way to set a flag. add a flag test. R=rsc DELTA=169 (99 added, 19 deleted, 51 changed) OCL=25076 CL=25078
2009-02-13convert composite literals from { } to ( ).Russ Cox
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-02-04clean up flags package a bit.Rob Pike
fix a bug in Usage message - would print current value instead of default. R=rsc DELTA=53 (7 added, 4 deleted, 42 changed) OCL=24323 CL=24323
2009-01-20delete exportRuss Cox
TBR=r OCL=23121 CL=23127
2009-01-16casify, cleanup sysRuss Cox
R=r OCL=22978 CL=22984
2009-01-16casify flag.Rob Pike
R=rsc DELTA=16 (0 added, 9 deleted, 7 changed) OCL=22959 CL=22961
2009-01-15more casifying fixupsRob Pike
R=rsc DELTA=213 (0 added, 0 deleted, 213 changed) OCL=22878 CL=22882
2009-01-15printf->Printf etc.Rob Pike
the raw fmt routines will be another, smaller but subtler pass. R=rsc DELTA=157 (0 added, 0 deleted, 157 changed) OCL=22851 CL=22851
2009-01-09simplify flag interface. no more BVal etc. you just get a pointer.Rob Pike
fixed everything except the tutorial. R=rsc DELTA=404 (94 added, 139 deleted, 171 changed) OCL=22414 CL=22422
2009-01-06new new & makeRuss Cox
R=r OCL=22166 CL=22166
2008-12-19change *map to map; *chan to chan; new(T) to new(*T)Russ Cox
fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
2008-11-18stop flag reading before lone - arg.Russ Cox
R=r DELTA=5 (3 added, 0 deleted, 2 changed) OCL=19520 CL=19529
2008-10-29update Fmt interface: d=int, ud=uint, d32=int32, d64=int64, etc.Russ Cox
R=r DELTA=202 (60 added, 24 deleted, 118 changed) OCL=18029 CL=18038
2008-10-29adapt to new compiler typesRuss Cox
R=r OCL=18024 CL=18024
2008-10-24- set initial value in flag variable if providedRobert Griesemer
R=r DELTA=10 (9 added, 0 deleted, 1 changed) OCL=17806 CL=17812
2008-10-23use &T{1,2,3} constructor for simple new casesRuss Cox
R=r OCL=17691 CL=17719
2008-10-07remove uses of *T as an implicit forward declaration of TRuss Cox
R=gri,r OCL=16648 CL=16652
2008-10-07update code to follow new semicolon rules:Russ Cox
* 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. /home/rsc/bin/addsemi and then diff+tweak. R=r,gri OCL=16620 CL=16643
2008-09-19more nuanced handling of usage message to allow user control.Rob Pike
also print argv(0) in default message R=gri DELTA=37 (21 added, 9 deleted, 7 changed) OCL=15540 CL=15554
2008-09-11fixes for funcs without returnsRob Pike
R=ken OCL=15170 CL=15170
2008-08-11- changed go-in-go parser to require ()'s for panic and printRobert Griesemer
- adjusted much of the existing go code - missing: tests R=r DELTA=229 (1 added, 17 deleted, 211 changed) OCL=14103 CL=14103
2008-08-04- switched most of existing Go code to new export syntaxRobert Griesemer
- adjusted lang doc R=r DELTA=192 (26 added, 65 deleted, 101 changed) OCL=13844 CL=13848
2008-07-24add usage messageRob Pike
R=gri OCL=13423 CL=13423
2008-07-23Add a flags package.Rob Pike
R=gri OCL=13399 CL=13399