| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2024-09-05 | Merge pull request #262 from hhromic/fix-261 | Alex Flint | |
| Fix help text for positional args with default and env var | |||
| 2024-07-22 | Fix help text for positional args with default and env var | Hugo Hromic | |
| 2024-07-06 | Move writing program version from usage to help writer | Hugo Hromic | |
| * Writing the version on usage text is unexpected and confusing | |||
| 2024-06-30 | Merge pull request #224 from hhromic/better-version-v2 | Alex Flint | |
| Fix usage writing when using custom version flag | |||
| 2024-06-30 | Add more test cases for version help/usage writing | Hugo Hromic | |
| 2024-06-29 | Use standard exit status code for usage errors | Hugo Hromic | |
| * The stdlib `flags` package and most command line utilities use status code `2`. | |||
| 2024-04-02 | Merge pull request #243 from alexflint/handle-empty-placeholderv1.5.0 | Alex Flint | |
| Handle explicit empty placeholders | |||
| 2024-04-02 | Merge pull request #244 from alexflint/restore-100pct-coverage | Alex Flint | |
| Restore 100% test coverage | |||
| 2024-04-02 | add a test case with single-level subcommands | Alex Flint | |
| 2024-04-02 | add test for help and usage when a --version flag is present | Alex Flint | |
| 2024-03-31 | handle explicit empty placeholders | Alex Flint | |
| 2023-10-08 | add subcommand aliases | Alex Flint | |
| 2023-06-03 | help,usage and error messages and tests | Ilja Neumann | |
| 2023-06-03 | Parse env-only vars | Ilja Neumann | |
| 2023-06-03 | fixed tests | Pablo Diaz | |
| 2023-06-03 | added tests and fixed usage | Pablo Diaz | |
| 2023-02-08 | clean up customizable stdout, stderr, and exit in parser config | Alex Flint | |
| 2022-10-29 | Merge remote-tracking branch 'origin/master' into default-value-issue | Alex Flint | |
| 2022-10-29 | add test for the new default value parsing logic as it shows up in help messages | Alex Flint | |
| 2022-10-29 | store both a default value and a string representation of that default value ↵ | Alex Flint | |
| in the spec for each option | |||
| 2022-09-17 | Feat: Add epilog after help text | Sebastiaan Pasterkamp | |
| Similar to the Description at the top of the help text an Epilog is added at the bottom. Resolves #189 | |||
| 2022-06-09 | fix issue #184 | Alex Flint | |
| 2022-02-09 | fix bracketing for non-required positionals | Alex Flint | |
| 2021-05-09 | add FailSubcommand, WriteUsageForSubcommand, WriteHelpForSubcommand | Alex Flint | |
| 2021-04-19 | test coverage 100% !! | Alex Flint | |
| 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 | |
