| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-01-31 | test that short-only options are printed first in the help message | Alex Flint | |
| 2020-12-20 | Skip right column if the left is empty | Andrew Morozko | |
| 2020-12-20 | Optional long arguments | Andrew Morozko | |
| 2020-06-03 | feat(usage): Include env variable in usage | Denys Vitali | |
| 2020-04-03 | clean up extraneous test output | Alex Flint | |
| 2020-03-01 | add Config.IgnoreEnv to ignore environment variables | Alex Flint | |
| 2020-01-25 | Fix lint warnings | Dylan Allbee | |
| 2020-01-25 | Use command passed into p.Parse(...) write methods | Dylan Allbee | |
| It is currently impossible to programatically write help and usage messages for subcommands, due to parser.WriteHelp and parser.WriteUsage not taking the state of the parser into account. Check for the existence of p.lastCmd and use it for the writers when available. Enables ability to write unit tests for subcommand help. | |||
| 2019-10-19 | store default values during NewParser | Alex Flint | |
| 2019-04-04 | add golangci badge, and fix some lint issues found by the tool | Alex Flint | |
| 2018-04-16 | fixed example comment, test coverage issue | Wlazlo, Matt | |
| 2018-04-13 | Custom parsers implementing encoding.TextMarshaler() can have default values ↵ | Wlazlo, Matt | |
| printed via --help | |||
| 2017-10-02 | Further clarification | Rick | |
| 2017-10-02 | Altered help tag parsing to reduce the constraints on help text content; old ↵ | Rick | |
| behaviour is retained for backward compatibility | |||
| 2017-03-30 | tests | Mario Hros | |
| 2017-03-08 | nicer usage output | Mario Hros | |
| 2017-01-23 | add support for description string | Emmanouil "Manolis" Maragkakis | |
| 2016-09-08 | add support for version string | Alex Flint | |
| 2016-03-06 | Print defaults for multiples | Fredrik Wallgren | |
| Check if the default value supplied is a slice and not nil, if so print the list of values supplied. Test case for slice argument with and without default values. Default values for slices was not printed because slice is not comparable, but the zero value for slices is nil. | |||
| 2016-02-22 | Merge pull request #32 from alexflint/override_program_name | Alex Flint | |
| make it possible to override the name of the program | |||
| 2016-01-18 | Add support for environment variables | brettlangdon | |
| 2016-01-18 | make it possible to override the name of the program | Alex Flint | |
| 2016-01-18 | resolve merge | Alex Flint | |
| 2015-12-04 | Fix error when printing usage for multi-value arguments | Alex Rakoczy | |
| We try to compare []strings, which are uncomparable types: `panic: runtime error: comparing uncomparable type []string` | |||
| 2015-11-21 | Display help text for positional arguments | brettlangdon | |
| 2015-11-22 | Add default values to usage | Fredrik Wallgren | |
| Check if the value isn't it's zero value and if not add a default value to the usage text. | |||
| 2015-11-16 | Add built ins to options in help output | Fredrik Wallgren | |
| Adds help to the options in help output with an easy way to add more built ins. | |||
| 2015-11-07 | Remove excess trailing whitespace from Usage generation | brettlangdon | |
| 2015-11-04 | add tests for usage info | Alex Flint | |
