awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
apple avatar

apple/swift-argument-parser

0
View on GitHub↗
3,728 stars·386 forks·Swift·Apache-2.0·10 viewsswiftpackageindex.com/apple/swift-argument-parser/documentation↗

Swift Argument Parser

This is a library for building command-line interfaces in Swift. It converts command-line arguments into type-safe Swift properties using a declarative approach, ensuring that inputs match expected data types to prevent runtime errors.

The framework supports the creation of complex command hierarchies through nested subcommands. It automatically generates formatted usage documentation and error messages by deriving information from the defined metadata and types.

The system utilizes property wrappers to attach parsing logic to types and employs reflection to extract metadata from property names and types at runtime.

Features

  • Command Line Argument Parsing - Processes command-line flags and arguments, converting raw input into type-safe Swift properties.
  • Nested Command Structures - Provides hierarchical organization of CLI commands into sub-commands and groups using a declarative tree of types.
  • Command Line Argument Parsers - Parses raw shell input strings into structured, type-safe Swift objects based on defined requirements.
  • Subcommand Parsers - Enables the creation of complex command hierarchies with nested sub-commands and automatic help generation.
  • Type-Safe Argument Mappings - Converts raw command-line string input into strongly typed Swift properties through a generic decoding layer.
  • CLI Frameworks - Provides a declarative framework for building type-safe command-line interfaces in Swift.
  • CLI Frameworks - Provides a type-safe framework where command-line arguments and options map directly to Swift types.
  • Automated Help Generators - Automatically produces usage instructions and option descriptions for command-line interfaces from the defined command hierarchy.
  • Property Wrapper Declarations - Uses Swift property wrappers to attach parsing logic and metadata to command-line arguments.
  • Reflection-Based Property Accessors - Employs runtime reflection to inspect property names and types to determine argument requirements.
  • Argument Parsing - Type-safe and straightforward argument parsing utility.
  • Command Line Tools - Type-safe argument parsing for Swift.
  • Command Line Utilities - Parse command-line arguments in Swift applications.

Star history

Star history chart for apple/swift-argument-parserStar history chart for apple/swift-argument-parser

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Swift Argument Parser

Similar open-source projects, ranked by how many features they share with Swift Argument Parser.
  • cliutils/cli11CLIUtils avatar

    CLIUtils/CLI11

    4,322View on GitHub↗

    CLI11 is a header-only C++ library for parsing command line arguments and managing configuration files. It maps shell input to typed variables and supports the creation of complex command hierarchies. The library is distinguished by its support for nested subcommands with infinite depth and prefix matching. It integrates configuration management by allowing application settings to be loaded from TOML or INI files, with the ability to fall back to environment variables. The project provides a comprehensive set of tools for argument parsing, including flags and positional arguments, alongside

    C++clicli-parsercpp11
    View on GitHub↗4,322
  • remkop/picocliremkop avatar

    remkop/picocli

    5,387View on GitHub↗

    picocli is a command line interface development framework and argument parser for JVM-based applications. It maps command line options and positional parameters to strongly typed Java methods and fields using a declarative, annotation-based model. The framework provides specific support for native image compilation, producing the reflection and resource configuration files necessary to build standalone binaries with reduced startup overhead. It further distinguishes itself with a dedicated system for generating shell autocompletion scripts and an ANSI terminal stylizer for applying colors and

    Java
    View on GitHub↗5,387
  • commandlineparser/commandlinecommandlineparser avatar

    commandlineparser/commandline

    4,817View on GitHub↗

    This library is a .NET command line parser for C# and F# that implements POSIX getopt conventions to map shell arguments into strongly typed objects. It provides a framework for building console applications that process Unix-style flags and options. The project features a routing system that directs program execution based on action-oriented verbs, supporting sub-commands and default actions. It includes an automatic help generator that produces localized usage instructions and formatted help screens based on the defined command options. The toolset covers argument parsing with strongly typ

    C#command-linedotnetdotnet-core
    View on GitHub↗4,817
  • yargs/yargsyargs avatar

    yargs/yargs

    11,492View on GitHub↗

    yargs is a command-line interface framework and argument parser for Node.js. It translates raw command-line strings into structured JavaScript objects, providing a toolkit for building terminal applications with nested sub-commands, dedicated handlers, and a structured user interface. The framework distinguishes itself through automated help text generation, which constructs formatted usage menus and instructions based on registered metadata. It also provides shell completion generation for Bash and Zsh and uses string-distance algorithms to offer typo correction suggestions when invalid inpu

    JavaScript
    View on GitHub↗11,492
See all 30 alternatives to Swift Argument Parser→

Frequently asked questions

What does apple/swift-argument-parser do?

This is a library for building command-line interfaces in Swift. It converts command-line arguments into type-safe Swift properties using a declarative approach, ensuring that inputs match expected data types to prevent runtime errors.

What are the main features of apple/swift-argument-parser?

The main features of apple/swift-argument-parser are: Command Line Argument Parsing, Nested Command Structures, Command Line Argument Parsers, Subcommand Parsers, Type-Safe Argument Mappings, CLI Frameworks, Automated Help Generators, Property Wrapper Declarations.

What are some open-source alternatives to apple/swift-argument-parser?

Open-source alternatives to apple/swift-argument-parser include: cliutils/cli11 — CLI11 is a header-only C++ library for parsing command line arguments and managing configuration files. It maps shell… remkop/picocli — picocli is a command line interface development framework and argument parser for JVM-based applications. It maps… commandlineparser/commandline — This library is a .NET command line parser for C# and F# that implements POSIX getopt conventions to map shell… yargs/yargs — yargs is a command-line interface framework and argument parser for Node.js. It translates raw command-line strings… aikar/commands — This project is a Java command dispatch framework that maps user input to application logic using annotation-based… urfave/cli — This is a framework for building structured terminal applications in Go. It provides the core components necessary to…