aboutsummaryrefslogtreecommitdiff
path: root/flag_test.go
AgeCommit message (Expand)Author
2025-09-01fix: Restore ParseErrorsWhitelist name for nowTomas Aschan
2025-08-29Reset args on re-parse even if emptyreset-args-even-if-emptyTomas Aschan
2025-07-17Merge pull request #261 from dubrie/masterTomas Aschan
2025-06-01Merge pull request #409 from ShawnJeffersonWang/masterTomas Aschan
2025-04-21test: Commonly-returned error messagesEthan P.
2025-04-01Improve readability for error in TestPrintDefaultsMidnightRocket
2025-04-01Add better test for defaultIsZeroValue for generic Value typeMidnightRocket
2025-01-09fix govetMark Sagi-Kazar
2024-12-05fix: add test for argument length checkshawn
2020-06-10Update flag_test.goBill Johnson
2020-05-04Add exported functions to preserve `pkg/flag` compatibility (#220)Ryan McKern
2018-08-31Fix panic when parsing unknown flag followed by empty argument (#173)v1.0.3Oren Shomron
2018-04-10Allow Users To Show Deprecated Flags (#163)Eric Paris
2018-03-30add ability to ignore unknown flags (#160)Rajat Jindal
2017-10-20Prevent printing when using ContinueOnError (#144)Steven Roose
2017-10-16add int16 flag (#143)Matthew Jaffee
2017-10-08Remove redundant breakPontus Leitzler
2017-10-05Fixing Count flag usage string (#141)gonix
2017-10-02Fix SetNormalizeFunc (#137)Diego Becciolini
2017-09-01New: renamed intSlice to ints in usageChristophe Serafin
2017-09-01Fixed: updated unittestChristophe Serafin
2017-05-05Testing for Shorthand LookupEric Paris
2017-05-05Allow lookup by shorthand (#106)Charlie R.C
2017-04-12flag_test: fix go vet (#123)Tamir Duberstein
2017-04-05Prevent changing order of flags after SetNormalizeFunc() (#121)Albert Nigmatzianov
2017-03-25Add SortFlags option (#113)Albert Nigmatzianov
2017-01-19Merge pull request #102 from bogem/redundantEric Paris
2017-01-16Make command line parsing available outside pflagxilabao
2016-10-23Clean up codebogem
2016-09-09Fix default values for custom fieldsCameron Moore
2016-09-06add a new type StringArraywu8685
2016-08-16Refactor default value detectionCameron Moore
2015-12-18Issue #55: implement Go 1.5-style default usage formatting.Giovanni Bajo
2015-09-16Store the length of Args when a -- is found in commandlineEric Paris
2015-09-07adding a private field to flags, and a function for marking flags as privateSteve Domino
2015-08-20Add shorthand deprecatorJanet Kuo
2015-08-15New AddFlagSet function on FlagSetEric Paris
2015-08-15Fix up minor things found by goreportcard.comEric Paris
2015-08-07More tests for ChangedEric Paris
2015-08-07New helper to easily see if a flag has been setEric Paris
2015-06-22Add support for '--flag arg'Eric Paris
2015-06-22Set default values if no arg givenEric Paris
2015-06-22Merge pull request #25 from eparis/GetFlagTypeEric Paris
2015-06-22Add SetAnnotation helperJordan Liggitt
2015-06-01Add new FlagSet.Get{Int,String,...} accessor functionsEric Paris
2015-06-01Moar flag_test!Eric Paris
2015-05-19Added a test for normalizing usage nameAnastasis Andronidis
2015-05-10Call normalizeFlagName function only onceAnastasis Andronidis
2015-05-08Support bool= with shortnamesEric Paris
2015-04-29Merge remote-tracking branch 'ogier/master' into mergeEric Paris