Skip to content

Releases: integrii/flaggy

v1.5.2

28 May 05:31
7f80235
Compare
Choose a tag to compare

If you would like to use a variable number of arguments at the end of your program without the user specifying -- before the list, you can do this by setting flaggy.ShowHelpOnUnexpectedDisable() and then parsing the []string at flaggy.TrailingArguments. For more details, see Issue #79

  • new trailingArguments example
  • new tests for trailing arguments with positionals. fixed trailing arguments being incorrectly considered as positionals

v1.5.1

25 Apr 23:13
56e4402
Compare
Choose a tag to compare

What's Changed

New Contributors

  • @ohzqq made their first contribution in #78

Full Changelog: v1.5.0...v1.5.1

v1.5.0

23 Apr 18:20
50d0cd8
Compare
Choose a tag to compare

Important! A build error snuck into this release. Please use v1.5.1!

What's Changed

  • Add new TrailingSubcommand() method to find the last subcommand used by parsers @mattwiller in #75
  • cosmetic: simplify Parser by @marco-m in #70
  • blackbox test: actually assert something by @marco-m in #73
  • Add useful info to AddPositionalValue panic. by @groutr in #77
  • Linter fixes by @marco-m in #71

Thank you to our new contributors! 🎉

Full Changelog: v1.4.4...v1.5.0

v1.4.4

17 Feb 20:10
6eead6a
Compare
Choose a tag to compare
  • Fixing URL in Unlicense LICENSE file so that pkg.go.dev properly shows documentation for flaggy (it matches the entire license file text)

v1.4.3

18 Jan 20:46
Compare
Choose a tag to compare
  • upping revision because modules are preventing a quick fix to the 1.4.2 branch

v1.4.2

18 Jan 20:35
Compare
Choose a tag to compare
  • Fix for ShowHelpOnUnexpected breaking when go test is run.

v1.4.1

14 Jan 07:23
6407017
Compare
Choose a tag to compare
  • fixed identification of bool flags on nested subcommands. Thanks @ethanmoffat for PR #58!

v1.4.0

15 Nov 23:37
3376827
Compare
Choose a tag to compare

Thanks to @ravenpride for his help with this one.

  • flaggy.DefaultParser.ShowHelpOnUnexpected() now properly throws an error when unexpected arguments are passed from the command line

v1.3.0

28 Oct 03:36
4bdfd54
Compare
Choose a tag to compare

This release contains only polish and documentation.

v1.2.2

21 Aug 01:49
Compare
Choose a tag to compare
  • Fixed: Default values were not showing when program displays help in certain codepaths