Swift Argument Parser v1.1.0 Release Notes
Release Date: 2022-03-14 // about 2 years ago-
โ Additions
- ๐ A command's
run()
method now supportsasync
/await
when the command conforms toAsyncParsableCommand
. ([#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!
- ๐ A command's