Swift Argument Parser v1.1.0 Release Notes

Release Date: 2022-03-14 // about 2 years ago
  • โž• Additions

    • ๐Ÿ‘ A command's run() method now supports async/await when the command conforms to AsyncParsableCommand. ([#404])
    • ๐Ÿ†• New API for distinguishing between public, hidden, and private arguments and option groups, and a new extended help screen accessible via --help-hidden. ([#366], [#390], and [#405 through #413][1.1.0])
    • ๐Ÿ”ง You can now override the autogenerated usage string when configuring a command. ([#400])

    ๐Ÿ”„ Changes

    • ๐Ÿ“œ ArgumentParser now requires Swift 5.5.

    ๐Ÿ›  Fixes

    • The auto-generated usage string now correctly hides all optional parameters when over the length limit. ([#416])
    • One @Option initializer now has its parameters in the correct order; the incorrect initializer is deprecated. ([#391])
    • Help flags are now correctly captured in .unconditionalRemaining argument arrays.
    • ๐Ÿ“š Documentation fixes and improvements.

    ๐Ÿš€ The 1.1.0 release includes contributions from [keith], [MartinP7r], [McNight], [natecook1000], [rauhul], and [zkiraly]. Thank you!