summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-08Merge pull request #211 from alexflint/clean-up-osexit-stderr-stdoutAlex Flint
clean up customizable stdout, stderr, and exit in parser config
2023-02-08clean up customizable stdout, stderr, and exit in parser configAlex Flint
2023-02-08Merge pull request #210 from cabuda/masterAlex Flint
feat: support more env than terminal
2023-02-08feat: support more env than terminalduxinlong
Change-Id: I7f35e90b8f19f4ea781832885d35e2f1e275207a
2023-01-27Merge pull request #205 from dmzkrsk/strict-subgroup-parsingAlex Flint
add strict subcommand parsing
2023-01-18fix typoAlexey Trofimov
2023-01-18add strict subcommand parsingAlexey Trofimov
2022-10-29Merge pull request #185 from alexflint/default-value-issueAlex Flint
Do not turn values intro strings and then back into values when processing default values
2022-10-29in a second place: use reflect.Ptr not reflect.Pointer since the latter was ↵Alex Flint
added in Go 1.18
2022-10-29use reflect.Ptr not reflect.Pointer since the latter was added in Go 1.18Alex Flint
2022-10-29Merge remote-tracking branch 'origin/master' into default-value-issueAlex Flint
2022-10-29add further comment about backwards-compatible method for setting default valuesAlex Flint
2022-10-29drop unnecessary testAlex Flint
2022-10-29remove unused textMarshalerType and isTextMarshalerAlex Flint
2022-10-29add test for the new default value parsing logic as it shows up in help messagesAlex Flint
2022-10-29store both a default value and a string representation of that default value ↵Alex Flint
in the spec for each option
2022-10-29drop unnecessary use of templates in this testAlex Flint
2022-10-10Merge pull request #198 from daenney/mustparseAlex Flint
Implement MustParse on Parser
2022-10-10Implement MustParse on ParseDaniele Sluijters
This moves most of the body of the MustParse function into a MustParse method on a Parser. The MustParse function is now implemented by calling the MustParse function on the Parser it implicitly creates. Closes: #194
2022-10-02Merge pull request #196 from alexflint/bump_go_versionsAlex Flint
Update to latest version of Go in CI
2022-10-02update to latest 3 versions of Go for CIAlex Flint
2022-10-02Merge pull request #195 from alexflint/bump_scalar_depAlex Flint
Update to latest go-scalar
2022-10-02update to latest go-scalar, add test for hex, oct, and binary integer literalsAlex Flint
2022-09-27Merge pull request #191 from SebastiaanPasterkamp/add-epilog-to-helpAlex Flint
Feat: Add epilogue after help text
2022-09-17Feat: Add epilog after help textSebastiaan Pasterkamp
Similar to the Description at the top of the help text an Epilog is added at the bottom. Resolves #189
2022-06-11Merge pull request #172 from SebastiaanPasterkamp/ignore-default-optionAlex Flint
Add 'IgnoreDefault' option
2022-06-09fix issue #184Alex Flint
2022-06-05Simplify sub-command initialization w/o IgnoreDefaultSebastiaan Pasterkamp
2022-02-09Merge pull request #175 from alexflint/bracketing-positionalsv1.4.3Alex Flint
Fix bracketing for non-required positionals in usage
2022-02-09fix bracketing for non-required positionalsAlex Flint
2022-01-05Merge pull request #173 from GreyXor/masterAlex Flint
Update testify dependency to 1.7.0
2022-01-05Update go.sumGreyXor
2022-01-05Update testify dependency to 1.7.0GreyXor
2022-01-02Add 'IgnoreDefault' optionSebastiaan Pasterkamp
2021-10-01Merge pull request #166 from alexflint/env-in-errorAlex Flint
Put name of environment variable in error message
2021-10-01put name of environment variable in error messageAlex Flint
2021-09-18Merge pull request #156 from alexflint/usage-for-subcommandsAlex Flint
add FailSubcommand, WriteUsageForSubcommand, WriteHelpForSubcommand
2021-09-18Merge remote-tracking branch 'origin/master' into usage-for-subcommandsAlex Flint
2021-09-18Merge pull request #164 from evgenv123/evgenv123-patch-1Alex Flint
Update README.md
2021-09-18Update README.mdAlex Flint
2021-09-18Update README.mdevgenv123
Hi! As a first-time user of your great package I got a little bit confused on using command line args and env vars together, so it took me some time to make testing and I propose to save this time for other people by adding relevant edits to README.md
2021-08-20Merge pull request #162 from alexflint/support-for-urlsAlex Flint
Add support for URLs
2021-08-20bump go-scalar to v1.1 and add documentation about supported typesAlex Flint
2021-05-24Merge pull request #158 from alexflint/unexported-embeddedv1.4.2Alex Flint
Recurse into unexported embedded structs
2021-05-24recurse into unexported embedded structsAlex Flint
2021-05-09simplify the error string logicAlex Flint
2021-05-09add FailSubcommand, WriteUsageForSubcommand, WriteHelpForSubcommandAlex Flint
2021-04-20Merge pull request #153 from alexflint/test-empty-mapv1.4.1Alex Flint
Fix case where an empty environment variable is parsed in a slice or map
2021-04-20fix case where an environment variable containing an empty string is parsed ↵Alex Flint
into a slice or map
2021-04-20Merge pull request #152 from alexflint/mappings-with-commasv1.4.0Alex Flint
Add an example of mappings with commas