github apple/swift-argument-parser 1.0.3
ArgumentParser 1.0.3

latest releases: 1.5.0, 1.4.0, 1.3.1...
2 years ago

Changes

  • When a user provides an incorrect value for an option, an ArgumentParser-based program now includes the valid values when possible.

    $ example --format png
    Error: The value 'png' is invalid for '--format <format>'.
    Please provide one of 'text', 'json' or 'csv'.
    

Fixes

  • Resolves an issue with zsh custom completions for command names that include a dash.
  • Improves the generated completions scripts for fish.
  • Resolves issues that prevented building ArgumentParser for WebAssembly using SwiftWasm toolchains.
  • Improved window size handling on Windows.
  • Fixed a crash when using --experimental-dump-help with commands that provide non-parsed values.
  • Fixes an issue where subcommands that declare array arguments with the .unconditionalRemaining parsing strategy unexpectedly miss arguments, extending the change in #333 to subcommands. (#397)
  • Corrects the order of an @Option initializer's parameters, deprecating the old version. (#391)
  • Expanded and corrected documentation.

The 1.0.3 release includes contributions from @atierian, @CraigSiemens, @dduan, @floam, @KS1019, @McNight, @mdznr, @natecook1000, @rauhul, and @yonihemi. Thank you!

Don't miss a new swift-argument-parser release

NewReleases is sending notifications on new releases.