summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-04-02Merge pull request #243 from alexflint/handle-empty-placeholderv1.5.0Alex Flint
Handle explicit empty placeholders
2024-04-02Merge pull request #244 from alexflint/restore-100pct-coverageAlex Flint
Restore 100% test coverage
2024-04-02add a test case with single-level subcommandsAlex Flint
2024-04-02add test for help and usage when a --version flag is presentAlex Flint
2024-03-31restore 100% code coverageAlex Flint
2024-03-31pingAlex Flint
2024-03-31handle explicit empty placeholdersAlex Flint
2023-10-10Merge pull request #231 from alexflint/subcommand-aliasesAlex Flint
add subcommand aliases
2023-10-08add a unittest for an internally messed up subcommand pathAlex Flint
2023-10-08add some more tests for subcommand aliasesAlex Flint
2023-10-08add subcommand aliasesAlex Flint
2023-09-10Merge pull request #229 from ↵Alex Flint
alexflint/dependabot/go_modules/gopkg.in/yaml.v3-3.0.0 Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0
2023-08-30Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0dependabot[bot]
Bumps gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0. --- updated-dependencies: - dependency-name: gopkg.in/yaml.v3 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
2023-07-14Merge pull request #223 from hhromic/fix-version-flagAlex Flint
Improve handling of version flag
2023-07-14Improve handling of version flagHugo 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-07-02Merge pull request #222 from IljaN/env-only-argsAlex Flint
Support for parameters which can only be passed via env
2023-06-29Remove usage of additional envOnly struct variableIlja Neumann
2023-06-03help,usage and error messages and testsIlja Neumann
2023-06-03Parse env-only varsIlja Neumann
2023-06-03don't print env-vars in usage lineIlja Neumann
2023-06-03fixed testsPablo Diaz
2023-06-03added tests and fixed usagePablo Diaz
2023-06-03ignores short and long parametersPablo Diaz
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