summaryrefslogtreecommitdiff
path: root/src/flag
Commit message (Expand)AuthorAgeFilesLines
* flag: panic if a flag is defined after being setKeith Randall2023-04-212-3/+41
* flag: add BoolFunc; FlagSet.BoolFuncCarl Johnson2023-03-163-2/+88
* flag: clarify that the main func at pkg.go.dev is part of a testing suiteZeke Lu2022-10-261-2/+4
* flag: remove "// BUG" commentZamicol2022-10-171-3/+3
* flag: test IsBoolFlag when creating the usage messageRob Pike2022-09-192-2/+30
* flag: use strings.Buildercuiweixie2022-09-061-6/+5
* 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-012-4/+60
* all: untab /* */ doc commentsRuss Cox2022-03-151-58/+58
* flag: add TextVar functionJoe Tsai2022-03-102-0/+91
* flag: make tests silentDaniel Martí2022-03-072-4/+11
* 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-102-6/+101
* all: update references to symbols moved from io/ioutil to ioRuss Cox2020-10-201-3/+2
* flag: add FuncCarl Johnson2020-09-163-3/+110
* flag: fix TestExitCode on Plan 9David du Colombier2020-04-031-0/+5
* flag: exit 0 when -h or -help invoked but undefinedShang Jian Ding2020-04-032-1/+65
* 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-192-0/+96
* all: use strings.ReplaceAll and bytes.ReplaceAll where applicableBrad Fitzpatrick2018-09-261-1/+1
* flag: add a Value exampleTerin Stock2018-06-211-0/+44
* 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-012-11/+6
* 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-312-7/+53
* flag: simplify switch-case in isZeroValueGabriel Aszalos2017-10-171-5/+1
* flag: align multi-line usage stringsTim Cooper2017-09-282-4/+14
* 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-083-2/+19
* flag: validate Int and Uint values to be in rangeBrad Fitzpatrick2017-03-212-2/+19
* flag: arrange for FlagSet.Usage to be non-nil by defaultRuss Cox2016-10-262-6/+16
* 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-312-3/+18
* flag: update test case (fix build)Robert Griesemer2016-04-211-1/+1
* all: single space after period.Brad Fitzpatrick2016-03-021-6/+6
* all: make copyright headers consistent with one space after periodBrad Fitzpatrick2016-03-011-1/+1
* flag: add comment stating that Set is called in sequence across the command lineRob Pike2015-07-161-0/+2