| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-07-14 | Improve handling of version flag | Hugo Hromic | |
| * Only use/show builtin `--version` flag if args are versioned with a non-empty `Version()` * If args define a `--version` flag, honor it and disable/hide the builtin version flag * Only return `ErrVersion` when using the builtin version flag | |||
| 2023-06-03 | help,usage and error messages and tests | Ilja Neumann | |
| 2023-06-03 | don't print env-vars in usage line | 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 | |
| 2023-02-08 | feat: support more env than terminal | duxinlong | |
| Change-Id: I7f35e90b8f19f4ea781832885d35e2f1e275207a | |||
| 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-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-02-09 | fix bracketing for non-required positionals | Alex Flint | |
| 2021-05-09 | simplify the error string logic | Alex Flint | |
| 2021-05-09 | add FailSubcommand, WriteUsageForSubcommand, WriteHelpForSubcommand | Alex Flint | |
| 2021-04-19 | test coverage 100% !! | Alex Flint | |
| 2021-04-19 | change "kind" to "cardinality", add support for maps to parser | Alex Flint | |
| 2021-04-16 | Merge pull request #137 from alexflint/optional-long | Alex Flint | |
| Optional long names | |||
| 2021-04-08 | refactor: remove unused function | LeoZhan | |
| 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-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. | |||
| 2020-01-25 | Print global options in help for subcommands | Dylan Allbee | |
| fixes #101 | |||
| 2020-01-23 | address review comments | Marco Molteni | |
| 2020-01-19 | usage: if the program supports subcommands, mention it | Marco Molteni | |
| 2019-11-30 | Various changes | Andrew Morozko | |
| 2019-11-29 | Added the "dataname" tag | Andrew Morozko | |
| 2019-10-19 | store default values during NewParser | Alex Flint | |
| 2019-05-03 | no need to initialize nil structs during path traversal | Alex Flint | |
| 2019-05-03 | simplify Fprint call | Alex Flint | |
| 2019-05-03 | print help and usage at subcommand level if necessary | Alex Flint | |
| 2019-05-03 | add subcommands to usage string | Alex Flint | |
| 2019-04-30 | introduced path struct | Alex Flint | |
| 2019-04-30 | rename get/settable to readable/writable | Alex Flint | |
| 2019-04-30 | minor reformat | Alex Flint | |
| 2019-04-14 | all tests passing again | Alex Flint | |
| 2019-04-14 | refactor validation | Alex Flint | |
| 2018-04-13 | Custom parsers implementing encoding.TextMarshaler() can have default values ↵ | Wlazlo, Matt | |
| printed via --help | |||
| 2017-03-30 | required positional args | Mario Hros | |
| 2017-03-08 | nicer usage output | Mario Hros | |
| 2017-02-08 | print description in help message, not in usage | Emmanouil "Manolis" Maragkakis | |
| 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-23 | add support for IP address, email address, and MAC address | Alex Flint | |
| 2016-01-18 | make it possible to override the name of the program | Alex Flint | |
| 2016-01-18 | extract common colWidth constant | Alex Flint | |
| 2016-01-18 | resolve merge | Alex Flint | |
