PackageTrack
Sign in Get early access

github.com/alexflint/go-arg

v1.6.1 alexflint/go-arg

What this package is like to depend on

Last release 7 months ago

27 Dec 2025

Ships fairly regularly

a new release about every 2 months

Most releases are documented

notes for 10 of 12 stable releases

Nothing withdrawn

no release was ever pulled

11 years old

104 releases · first in 2015

5 releases in the last 12 months

see the full history below

Release timeline

104 releases · Nov 2015 to Dec 2025
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 104
  1. v1.6.2-0.20251227220421-bd684bc5f43f 27 Dec 2025 pre-release

    Nothing published for this version

  2. v1.6.1 25 Nov 2025
    Release notes

    Hello friends. I'm pushing a release with a few minor changes so that the latest changes are available within a tagged release. As always, thanks for making use of this library, and for your all comments, questions, issues, pull requests, and discussions. Wishing you all the best for the new year.

    What's Changed

    • Add Regsiter, which allows go packages to define their own command line args by @alexflint in #291
    • Allow hiding a subcommand using "-" for help by @zeroshade in #292
    • No more positionals after a positional slice or map by @alexflint in #287

    New Contributors

    Full Changelog: v1.6.0...v1.7.0

    Open source →
  3. v1.6.1-0.20251125002245-1f6498e8a312 25 Nov 2025 pre-release

    Nothing published for this version

  4. v1.6.1-0.20251007212541-db3650508cca 07 Oct 2025 pre-release

    Nothing published for this version

  5. v1.6.1-0.20250829114940-b06ef59ce3d7 29 Aug 2025 pre-release

    Nothing published for this version

  6. v1.6.1-0.20250828133929-d5d9e3bd7619 28 Aug 2025 pre-release

    Nothing published for this version

  7. v1.6.0 24 May 2025
    Release notes

    Hey friends, here is the latest go-arg. What fun. I enjoy maintaining this library a lot. Lots of contributions from new contributors since last release -- check out new contributors section below. Very impressive work everyone.

    I'm working on completions support for this library. It's going to be a separate library, in a separate repository, that will (if all goes according to plan) be a general-purpose cross-language cross-shell completion-support binary. I'll then add some options in this library to make use of that project, probably mostly in the form of documentation and examples rather than any significant changes to default behavior. If you'd like to give input on any of that, please reach out via email (see email address in my github profile).

    As always, sorry for all the open issues and un-merged PRs!

    What's Changed

    • Use standard exit status code for usage errors by @hhromic in #256
    • Fix usage when using custom version flag by @hhromic in #224
    • Move program version from usage to help by @hhromic in #259
    • Fix help text for positional args with default and env var by @hhromic in #262
    • Allow passing the string "--" twice or more by @alexflint in #273
    • Add support for setting a global env var prefix by @hhromic in #258
    • Make field name output consistent when using placeholders by @zanvd in #276
    • Fix Missing Global Options by @Areson in #278
    • Improve handling of negative numbers by @alexflint in #285

    New Contributors

    Full Changelog: v1.6.0...v1.5.2

    Open source →
  8. v1.5.2-0.20250524121907-a36ed1e7b3fe 24 May 2025 pre-release

    Nothing published for this version

  9. v1.5.2-0.20250307220854-7155e7e98695 07 Mar 2025 pre-release

    Nothing published for this version

  10. v1.5.2-0.20241211062519-f21878956cd9 11 Dec 2024 pre-release

    Nothing published for this version

  11. v1.5.2-0.20241104175837-438bbfff1ede 04 Nov 2024 pre-release

    Nothing published for this version

  12. v1.5.2-0.20240906130031-b218ad854d68 06 Sep 2024 pre-release

    Nothing published for this version

  13. v1.5.2-0.20240905212009-d10a064207fe 05 Sep 2024 pre-release

    Nothing published for this version

  14. v1.5.2-0.20240904143140-50166cae2c87 04 Sep 2024 pre-release

    Nothing published for this version

  15. v1.5.2-0.20240704164029-3de7278c4f09 04 Jul 2024 pre-release

    Nothing published for this version

  16. v1.5.2-0.20240630204212-ec0ced74672e 30 Jun 2024 pre-release

    Nothing published for this version

  17. v1.5.1 28 Jun 2024
    Release notes
    • Fixes a bug introduced in v1.5.0 where bad struct tags and other parser-level initialization problems would result in a crash rather than a clean exit in MustParse (thanks @hhromic !)
    Open source →
  18. v1.5.0 02 Apr 2024
    Release notes
    • Argument structs can define Description() and Epilogue(), which are added to the usage string

    • Subcommands can have multiple aliases like this:

    var args struct {
        Remove *struct{} `arg:"subcommand:remove|rm|r" help:"remove something from somewhere"`
    }
    • Improves formatting of usage string when the placeholder tag is set to empty string

    • Do not handle --version when the args struct lacks a Version() function

    • Add StructSubcommands to Config struct

    Open source →
  19. v1.4.4-0.20240402161606-dfca71d1594a 02 Apr 2024 pre-release

    Nothing published for this version

  20. v1.4.4-0.20231010223646-bf629a16cbe5 10 Oct 2023 pre-release

    Nothing published for this version

  21. v1.4.4-0.20230910220506-5ec29ce7553b 10 Sep 2023 pre-release

    Nothing published for this version

  22. v1.4.4-0.20230714195233-660b9045e10d 14 Jul 2023 pre-release

    Nothing published for this version

  23. v1.4.4-0.20230702140710-463902ef7d12 02 Jul 2023 pre-release

    Nothing published for this version

  24. v1.4.4-0.20230208145656-e25b4707a7d6 08 Feb 2023 pre-release

    Nothing published for this version

  25. v1.4.4-0.20230127163512-c0a8e20a0ac9 27 Jan 2023 pre-release

    Nothing published for this version

  26. v1.4.4-0.20221029192907-727f8533acca 29 Oct 2022 pre-release

    Nothing published for this version

  27. v1.4.4-0.20221029192822-c046f49e125d 29 Oct 2022 pre-release

    Nothing published for this version

  28. v1.4.4-0.20221010154157-dbc2ba5d0c9a 10 Oct 2022 pre-release

    Nothing published for this version

  29. v1.4.4-0.20221002201743-11f9b624a9e5 02 Oct 2022 pre-release

    Nothing published for this version

  30. v1.4.4-0.20220927194805-74af96c6ccf4 27 Sep 2022 pre-release

    Nothing published for this version

  31. v1.4.4-0.20220611130603-ebd7a68a06be 11 Jun 2022 pre-release

    Nothing published for this version

  32. v1.4.3 10 Feb 2022
    Release notes
    • Correctly brackets non-required positional arguments in usage strings
    • Fixes help and usage strings for subcommands.
    • Add native support for url.URL via go-scalar
    • Add environment variables names to error messages when relevant
    Open source →
  33. v1.4.3-0.20230208145656-e25b4707a7d6 08 Feb 2023 pre-release

    Nothing published for this version

  34. v1.4.3-0.20221029192907-727f8533acca 29 Oct 2022 pre-release

    Nothing published for this version

  35. v1.4.3-0.20221010154157-dbc2ba5d0c9a 10 Oct 2022 pre-release

    Nothing published for this version

  36. v1.4.3-0.20220210020403-f0f44b65d117 10 Feb 2022 pre-release

    Nothing published for this version

  37. v1.4.3-0.20220105150204-d3706100bf0c 05 Jan 2022 pre-release

    Nothing published for this version

  38. v1.4.3-0.20220102141709-a87d80089a78 02 Jan 2022 pre-release

    Nothing published for this version

  39. v1.4.3-0.20211001114419-bf32f082479c 01 Oct 2021 pre-release

    Nothing published for this version

  40. v1.4.3-0.20210918155729-a4afd6a84909 18 Sep 2021 pre-release

    Nothing published for this version

  41. v1.4.3-0.20210821025918-ff38a63b36f6 21 Aug 2021 pre-release

    Nothing published for this version

  42. v1.4.2 25 May 2021
    Release notes

    This patch release fixes a regression in which unexported embedded structs were mistakenly being ignored.

    Open source →
  43. v1.4.1 21 Apr 2021
    Release notes

    Minor fix for case where an environment variable containing an empty string is parsed into a slice or map.

    Open source →
  44. v1.4.0 20 Apr 2021
    Release notes
    • Adds support for parsing into a map (see #149)
    • Adds support for options that have no --long version, only a -s short version (see #137)
    Open source →
  45. v1.3.1-0.20210420022731-6a01a15f7547 20 Apr 2021 pre-release

    Nothing published for this version

  46. v1.3.1-0.20210417040314-f4eb7f3a585a 17 Apr 2021 pre-release

    Nothing published for this version

  47. v1.3.1-0.20210407183248-cf2205c84db7 07 Apr 2021 pre-release

    Nothing published for this version

  48. v1.3.1-0.20210201034320-bd6844a20d4d 01 Feb 2021 pre-release

    Nothing published for this version

  49. v1.3.1-0.20210201024605-2a23168641ed 01 Feb 2021 pre-release

    Nothing published for this version

  50. v1.3.1-0.20201220005133-438a91dba1e3 20 Dec 2020 pre-release

    Nothing published for this version

  51. v1.3.1-0.20200927162824-b91c03d2c6c9 27 Sep 2020 pre-release

    Nothing published for this version

  52. v1.3.1-0.20200806235247-96c756c382ed 06 Aug 2020 pre-release

    Nothing published for this version

  53. v1.3.1-0.20200706165915-a68c3d065362 06 Jul 2020 pre-release

    Nothing published for this version

  54. v1.3.1-0.20200603150727-2a3b5ea3cbdf 03 Jun 2020 pre-release

    Nothing published for this version

  55. v1.3.1-0.20200603080520-d4bb56e096c5 03 Jun 2020 pre-release

    Nothing published for this version

  56. v1.3.1-0.20200403154513-cfdee944f96c 03 Apr 2020 pre-release

    Nothing published for this version

  57. v1.3.1-0.20200301224725-6f3675fdf124 01 Mar 2020 pre-release

    Nothing published for this version

  58. v1.3.1-0.20200301223259-17bbf2e7ef44 01 Mar 2020 pre-release

    Nothing published for this version

  59. v1.3.1-0.20200223194400-db9f869c9973 23 Feb 2020 pre-release

    Nothing published for this version

  60. v1.3.1-0.20200125195334-5df19ebe00e8 25 Jan 2020 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive