Ross ROSS = Recommend OSS · open-source software intelligence for agents

apple/swift-argument-parser

Straightforward, type-safe argument parsing for Swift observed · 2026-08-28

github.com/apple/swift-argument-parser · homepage · Swift · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

93/100

  • Activity 99
  • Release rhythm 80
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 34
  • age_days: 2386
  • days_rel: 56
  • days_push: 7
  • n_releases_24m: 10

Full methodology

Adoption not part of the score

3757 stars · 406 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A Swift library from Apple for type-safe command-line argument parsing using property wrappers and the ParsableCommand protocol. It automatically generates usage help, error messages, and flag/option handling from declarative type definitions.

Use cases

  • parse command-line arguments in a Swift CLI tool
  • generate --help output automatically for a command-line utility
  • define CLI flags and options with type safety
  • build subcommand-based command-line tools in Swift
  • handle CLI input validation with useful error messages

When to choose

  • you are writing a command-line tool in Swift and want declarative, type-safe argument parsing
  • you want automatic help text, usage strings, and error messages generated from your types
  • you need subcommands and async command support in a Swift CLI

When to avoid

  • you are building a GUI or web application, not a CLI
  • your project is not in Swift
  • you need extremely lightweight parsing and prefer hand-rolled argv handling

Facets

library · maturity stable

cli parser developer-tools developer-tools programming-languages cross-platform argument-parsing property-wrappers type-safe swift-package command-line swift macos linux

1 source

Member repositories

RepositoryRoleHealth v2
apple/swift-argument-parsermain93

For agents

markdown · JSON · MCP: product_card(name="apple/swift-argument-parser")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem