summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-09-05Merge pull request #270 from alexflint/parse-docsAlex Flint
Update API docs for Parser.Parse
2024-09-05field -> fieldsAlex Flint
2024-09-05update api docs for Parser.ParseAlex Flint
2024-09-05Merge pull request #269 from alexflint/sponsorshipAlex Flint
Living in a monastery; looking for funding
2024-09-05Living in a monastery looking for fundingAlex Flint
The first commit to this project was on October 31, 2015, almost 9 years ago. It was [268 lines of code](https://github.com/alexflint/go-arg/commit/408290f7c2a968a0de255813e125a9ebb0a9dda6) and it worked pretty well! That was just about three and a half years after Go 1.0 was released. What fun! At that time there was no Go module system, so there was no need for versioned releases. Later, I started releasing official versions from time to time. v1.0.0 was published in December 2018. Over the years I've resisted adding a lot of features, and as a result the library is in pretty good shape. I use it in almost every Go program I write, personally, both servers/daemons and command line tools. It's nice! I live in a Buddhist monastery in Vermont now, not as a monk but as a lay practitioner. I'm working on building a form of Buddhism fit for consumption by AI systems. I love maintaining this little piece of software and I'd love some financial support to do so. I don't have a day job, and I need money to buy firewood, pay for car insurance, and travel to see my folks back home in Australia from time to time. If you use go-arg please consider sponsoring me. It would make a huge difference to me, and it will create a connection between us. I look forward to many long relationships.
2024-09-04Merge pull request #268 from alexflint/readme-custom-error-handlingAlex Flint
Add info to README about programmatically reproducing behavior of MustParse
2024-09-04add info to README about programmatically reproducing behavior of MustParseAlex Flint
2024-07-04Merge pull request #257 from hhromic/fix-testable-exampleAlex Flint
Fix testable example output comment formatting
2024-06-30Fix testable example output comment formattingHugo Hromic
2024-06-30Merge pull request #232 from alexflint/bump-go-versionsAlex Flint
bump go versions used in CI
2024-06-30Merge pull request #224 from hhromic/better-version-v2Alex Flint
Fix usage writing when using custom version flag
2024-06-30Update version of github actionsAlex Flint
2024-06-30Update go.ymlAlex Flint
2024-06-30Merge pull request #233 from testwill/typoAlex Flint
fix: typo
2024-06-30Merge pull request #237 from purpleidea/feat/env-docsAlex Flint
add an example for environment vars with arg names
2024-06-30Merge pull request #256 from hhromic/fix-246Alex Flint
Use standard exit status code for usage errors
2024-06-30Add note for version flag overriding to READMEHugo Hromic
2024-06-30Add more test cases for version help/usage writingHugo Hromic
2024-06-29Implement scanning of version flag in specs for usage generationHugo Hromic
2024-06-29Better scanning of version flag in specs for help generationHugo Hromic
2024-06-29Use standard exit status code for usage errorsHugo Hromic
* The stdlib `flags` package and most command line utilities use status code `2`.
2024-06-28Merge pull request #255 from hhromic/fix-254v1.5.1Alex Flint
Fix crash on errors in package-level `MustParse`
2024-06-27Fix crash on errors in package-level `MustParse`Hugo Hromic
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
2024-02-28add an example for environment vars with arg namesJames Shubin
If you want to specify both of these, and if they should have different names, then this shows you how it can be done.
2023-11-15fix: typoguoguangwu
Signed-off-by: guoguangwu <[email protected]>
2023-10-10Merge pull request #231 from alexflint/subcommand-aliasesAlex Flint
add subcommand aliases
2023-10-08bump go versions used in CIAlex Flint
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