summaryrefslogtreecommitdiff
path: root/src/flag/flag.go
Commit message (Expand)AuthorAgeFilesLines
* flag: panic if a flag is defined after being setKeith Randall2023-04-211-2/+28
* flag: add BoolFunc; FlagSet.BoolFuncCarl Johnson2023-03-161-0/+23
* flag: remove "// BUG" commentZamicol2022-10-171-3/+3
* flag: test IsBoolFlag when creating the usage messageRob Pike2022-09-191-2/+4
* flag: highlight support for double dashes in docsSebastian Gassner2022-07-011-1/+2
* all: gofmt main repoRuss Cox2022-04-111-2/+21
* flag: recover panic when calling String on zero value in PrintDefaultsAndrew Gerrand2022-04-011-3/+28
* all: untab /* */ doc commentsRuss Cox2022-03-151-58/+58
* flag: add TextVar functionJoe Tsai2022-03-101-0/+56
* all: gofmt -w -r 'interface{} -> any' srcRuss Cox2021-12-131-11/+11
* all: use reflect.{Pointer,PointerTo}Cuong Manh Le2021-10-261-1/+1
* flag: use strings.Builder instead of concatenating stringsJames Fennell2021-04-051-9/+11
* flag: panic if flag name begins with - or contains =KimMachineGun2021-03-101-6/+18
* flag: add FuncCarl Johnson2020-09-161-1/+21
* flag: exit 0 when -h or -help invoked but undefinedShang Jian Ding2020-04-031-1/+4
* flag: changed flag variable name in package doc, for clarityyuz2020-03-031-2/+2
* flag: update comment to refer to Output, not outIan Lance Taylor2020-02-271-1/+1
* flag: clarify that a flag cannot be re-definedAgniva De Sarker2019-11-111-0/+3
* cmd/go: further reduce init workDaniel Martí2019-03-311-7/+5
* flag: improve docs for PrintDefaults; clarify how to change output destinationAaron Cannon2019-01-211-0/+2
* flag: return a consistent parse error if the flag value is invalidRob Pike2018-10-191-0/+43
* all: use strings.ReplaceAll and bytes.ReplaceAll where applicableBrad Fitzpatrick2018-09-261-1/+1
* flag: fix headers in documentation, againDominik Honnef2018-06-141-0/+3
* flag: removed the colon after "Usage" in the documentationhellozee2018-06-071-2/+2
* flag: correct zero values when printing defaultsjimmyfrasche2018-04-011-11/+3
* flag: document use of FlagSet name parameterIan Lance Taylor2018-03-281-1/+2
* flag: clarify comment to avoid shell syntax confusionIan Lance Taylor2017-12-061-2/+3
* flag: add (*FlagSet).Name, (*FlagSet).ErrorHandling, export (*FlagSet).OutputTim Cooper2017-10-311-7/+19
* flag: simplify switch-case in isZeroValueGabriel Aszalos2017-10-171-5/+1
* flag: align multi-line usage stringsTim Cooper2017-09-281-4/+6
* flag: simplify arg logic in parseOnealexpantyukhin2017-09-051-1/+1
* flag: document that custom usage functions are free to call os.ExitRob Pike2017-08-291-1/+6
* all: remove some double spaces from commentsDaniel Martí2017-08-261-4/+4
* flag: make default Usage prefer CommandLine's output over just os.StderrBrad Fitzpatrick2017-08-081-2/+3
* flag: validate Int and Uint values to be in rangeBrad Fitzpatrick2017-03-211-2/+2
* flag: arrange for FlagSet.Usage to be non-nil by defaultRuss Cox2016-10-261-6/+15
* flag: use strconv instead of fmt in values' String funcsbogem2016-09-101-7/+7
* flag: improve comment for calling String with zero valueIan Lance Taylor2016-08-231-1/+2
* flag: document that Value.String must work on the zero valueIan Lance Taylor2016-08-231-0/+1
* flag: recognize "0s" as the zero value for a flag.DurationIan Lance Taylor2016-05-311-2/+17
* all: single space after period.Brad Fitzpatrick2016-03-021-6/+6
* flag: add comment stating that Set is called in sequence across the command lineRob Pike2015-07-161-0/+2
* flag: Clarifies docs for Arg(int) and FlagSet.Arg(int)Hariharan Srinath2015-07-121-2/+4
* flag: Describe the ErrorHandling enum values.Aaron Jacobs2015-06-051-4/+5
* flag: Fix up a package comment a bit.Aaron Jacobs2015-05-191-1/+1
* all: use "reports whether" in place of "returns true if(f)"Josh Bleecher Snyder2015-03-181-1/+1
* flag: use four spaces before tab, not threeRuss Cox2015-03-121-2/+2
* flag: nicer usage messagesRob Pike2015-03-121-8/+100
* flag: Check for Set errorMichalis Kargakis2014-12-221-1/+3
* flag: Some idiomatic fixesMichalis Kargakis2014-12-211-9/+9