Skip to content

Releases: cornfeedhobo/pflag

Use cobra integration testing to guarantee consistency

12 Mar 02:09
91c4515
Compare
Choose a tag to compare

This release resets the state by branching off upstream again and adding cobra integration tests to verify changes along the way. All changes included in the 1.0.x branch have been merged down and re-organized. Several other unreported bugs were found along the way. As a result, a new branch and release has been pushed to track the changes.

Add support for complex128

02 Dec 03:10
6ad51b0
Compare
Choose a tag to compare
v1.0.3

Add support for go1.15 complex128 type (#19)

Add IPNetSlice

10 Oct 01:38
b92b2e6
Compare
Choose a tag to compare
v1.0.2

Add IPNetSlice (#15)

Initial Release

01 Oct 20:27
387ae5f
Compare
Choose a tag to compare

This marks the first release after forking

CHANGELOG

  • Shorthand-only flags can now be defined with the S family of functions
  • Added FlagSet.DisableBuiltinHelp for disabling built-in help handling
  • Added GetFlags and GetAllFlags to compliment the visit functions
  • Added UnknownFlag, VisitUnknowns, and GetUnknowns to surface unknowns
  • Added Flag.UsageType to specify a custom flag type
  • Added Flag.DisableUnquoteUsage to disable the unquoting and extracting of types from backticks in Usage
  • Added Int8Slice, Int16Slice, Uint8Slice, Uint16Slice, Uint32Slice, Uint64Slice
  • Added ParseErrorsAllowlist to eventually replace ParseErrorsWhitelist
  • Bugfix for FlagSet.failf that was causing output to be swallowed
  • Bugfix for Usage to print to Output() by default, everywhere