⚠️ Breaking Change
This version, while only a patch bump, includes a (very minor) breaking change: the flag.ParseErrorsWhitelist
struct and corresponding FlagSet.parseErrorsWhitelist
field have been renamed to ParseErrorsAllowlist
.
This should result in compilation errors in any code that uses these fields, which can be fixed by adjusting the names at call sites. There is no change in semantics or behavior of the struct or field referred to by these names. If your code compiles without errors after bumping to/past v1.0.8, you are not affected by this change.
The breaking change was reverted in v1.0.9, by means of re-introducing the old names with deprecation warnings. The plan is still to remove them in a future release, so if your code does depend on the old names, please change them to use the new names at your earliest convenience.
What's Changed
- Remove Redundant "Unknown-Flag" Error by @vaguecoder in #364
- Switching from whitelist to Allowlist terminology by @dubrie in #261
- Omit zero time.Time default from usage line by @mologie in #438
- implement CopyToGoFlagSet by @pohly in #330
- flag: Emulate stdlib behavior and do not print ErrHelp by @tmc in #407
- Print Default Values of String-to-String in Sorted Order by @vaguecoder in #365
- fix: Don't print ErrHelp in ParseAll by @tomasaschan in #443
- Reset args on re-parse even if empty by @tomasaschan in #444
New Contributors
- @vaguecoder made their first contribution in #364
- @dubrie made their first contribution in #261
- @mologie made their first contribution in #438
- @pohly made their first contribution in #330
- @tmc made their first contribution in #407
- @tomasaschan made their first contribution in #443
Full Changelog: v1.0.7...v1.0.8