summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-05-24Merge pull request #285 from alexflint/negative-numbersv1.6.0Kōshin Alex Flint
Improve handling of negative numbers
2025-05-23improve handling of negative numbersAlex Flint
2025-03-07Merge pull request #278 from Areson/ioberst-global-help-optionsAlex Flint
Fix Missing Global Options
2025-02-11Fix Missing Global OptionsIan Oberst
2024-12-11Merge pull request #276 from zanvd/make-placeholder-output-consistentAlex Flint
Make field name output consistent when using placeholders
2024-12-05Use common output for usage and errors during parsing.Žan V. Dragan
2024-11-04Merge pull request #258 from hhromic/implement-204Alex Flint
Add support for setting a global env var prefix
2024-11-04Merge pull request #273 from alexflint/pass-dash-dash-throughAlex Flint
Passing the no-more-options string "--" twice or more
2024-10-21passing the no-more-options string "--" twice or more should pass the second ↵Alex Flint
and subsequent ones through as positionals
2024-09-07Add global env prefix example to READMEHugo Hromic
* Also made newline separations around sections consistent * Also fixed usage of `p.Parse()` in env variable ignore example
2024-09-07Add support for setting a global env var prefixHugo Hromic
2024-09-06Merge pull request #271 from alexflint/update-fundingAlex Flint
Update FUNDING.yml
2024-09-06Update FUNDING.ymlAlex Flint
2024-09-05Merge pull request #262 from hhromic/fix-261Alex Flint
Fix help text for positional args with default and env var
2024-09-05Merge pull request #259 from hhromic/fix-193Alex Flint
Move writing program version from usage to help writer
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-22Fix help text for positional args with default and env varHugo Hromic
2024-07-06Move writing program version from usage to help writerHugo Hromic
* Writing the version on usage text is unexpected and confusing
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