---
title: "github.com/apple/swift-argument-parser (swift) | Since.dev"
description: "What each github.com/apple/swift-argument-parser release on Swift Package Index removed, renamed or changed, each with its source."
canonical_url: https://since.dev/packages/swift/github.com/apple/swift-argument-parser
last_updated: 2026-12-04
---

# 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

Latest version `1.8.2`, released June 4, 2026. [Source repository](https://github.com/apple/swift-argument-parser)

- From [0.1.0](#v-0-1-0) to [0.5.0](#v-0-5-0): 8 breaking changes in 4 versions.

## github.com/apple/swift-argument-parser 0.5.0 breaking changes

github.com/apple/swift-argument-parser 0.5.0: 2 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](https://github.com/apple/swift-argument-parser/releases/tag/0.5.0)
- **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](https://github.com/apple/swift-argument-parser/releases/tag/0.5.0)

## github.com/apple/swift-argument-parser 0.4.0 breaking changes

github.com/apple/swift-argument-parser 0.4.0: 3 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](https://github.com/apple/swift-argument-parser/releases/tag/0.4.0)
- **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](https://github.com/apple/swift-argument-parser/releases/tag/0.4.0)
- **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](https://github.com/apple/swift-argument-parser/releases/tag/0.4.0)

## github.com/apple/swift-argument-parser 0.3.0 breaking changes

github.com/apple/swift-argument-parser 0.3.0: 1 breaking change.

- **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](https://github.com/apple/swift-argument-parser/releases/tag/0.3.0)

## github.com/apple/swift-argument-parser 0.2.0 breaking changes

github.com/apple/swift-argument-parser 0.2.0: 2 breaking changes.

- **Removed**  

The package now requires Swift 5.2. Projects built with older Swift toolchains must upgrade their toolchain. [github.com](https://github.com/apple/swift-argument-parser/releases/tag/0.2.0)
- **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](https://github.com/apple/swift-argument-parser/releases/tag/0.2.0)

## github.com/apple/swift-argument-parser 0.1.0 breaking changes

github.com/apple/swift-argument-parser 0.1.0: 4 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](https://github.com/apple/swift-argument-parser/releases/tag/0.1.0)
- **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](https://github.com/apple/swift-argument-parser/releases/tag/0.1.0)
- **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](https://github.com/apple/swift-argument-parser/releases/tag/0.1.0)
- **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](https://github.com/apple/swift-argument-parser/releases/tag/0.1.0)

## Related packages

- [github.com/apple/fhirmodels](https://since.dev/packages/swift/github.com/apple/fhirmodels.md)
- [github.com/apple/swift-async-algorithms](https://since.dev/packages/swift/github.com/apple/swift-async-algorithms.md)
- [github.com/apple/swift-certificates](https://since.dev/packages/swift/github.com/apple/swift-certificates.md)
- [github.com/apple/swift-configuration](https://since.dev/packages/swift/github.com/apple/swift-configuration.md)
- [github.com/apple/swift-crypto](https://since.dev/packages/swift/github.com/apple/swift-crypto.md)
- [github.com/apple/swift-distributed-tracing](https://since.dev/packages/swift/github.com/apple/swift-distributed-tracing.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
