github.com/apple/swift-argument-parser breaking changes
github.com/apple/swift-argument-parser 0.5.0 is its newest release with breaking changes, 2 of them. The first: Behavior changed Argument. Every breaking API change we have recorded in github.com/apple/swift-argument-parser on Swift Package Index: 12 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.8.2, released June 4, 2026. Source repository
github.com/apple/swift-argument-parser 0.5.0 breaking changes
- Behavior changed
Argument
Array arguments using the .unconditionalRemaining parsing strategy now stop option and flag parsing at the first positional argument or unrecognized flag, so code relying on options after that point will parse differently. github.com - Signature changed
Public enumerations in the package are now structs with static properties, so code that switches over or pattern-matches their cases must be updated to use the static properties instead. github.com
github.com/apple/swift-argument-parser 0.4.0 breaking changes
- Removed
The deprecated initializers of the property wrappers have been removed. Code that uses them must switch to the current initializers. github.com - Behavior changed
CommandConfiguration.helpNames
Parent commands' overridden help flags now pass down to child commands. If you customized a command's help flags, check that its help flags still behave as you expect. github.com - Behavior changed
errorCode
Throwing a CustomNSError type no longer uses its errorCode as the exit code. Print your error manually and throw an ExitCode error to set the exit code. github.com
github.com/apple/swift-argument-parser 0.3.0 breaking changes
- Behavior changed
Array options and arguments with no default value now require user input instead of defaulting to an empty array. Add an explicit default such as = [] to keep the old behavior. github.com
github.com/apple/swift-argument-parser 0.2.0 breaking changes
- Removed
The package now requires Swift 5.2. Projects built with older Swift toolchains must upgrade their toolchain. github.com - Behavior changed
Flag
Flags with inversions that have no default value previously defaulted to false; they now have no default and users must supply them. Add a default of false to keep the old behavior. github.com
github.com/apple/swift-argument-parser 0.1.0 breaking changes
- Removed
Flag
The @Flag initializers that were deprecated in version 0.0.6 are now marked as unavailable and can no longer be used. github.com - Removed
Optional
Optional values no longer conform to ExpressibleByArgument. Code that uses optional values where an ExpressibleByArgument type is expected must change its usage or provide an explicit override. github.com - Signature changed
ParsableCommand.main
The static main() method on ParsableCommand now returns a normal type instead of Never. Code that requires a () -> Never function must change its usage or wrap the call in another function. github.com - Signature changed
ParsableCommand.run
The run() requirement of ParsableCommand is now mutating. Commands parsed manually and run directly may need to change from a constant to a variable. github.com
Related packages
- github.com/apple/fhirmodels
- github.com/apple/swift-async-algorithms
- github.com/apple/swift-certificates
- github.com/apple/swift-configuration
- github.com/apple/swift-crypto
- github.com/apple/swift-distributed-tracing
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.