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) - 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!