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
·

Rust Command Line Argument Parsers

Ranking updated Jun 30, 2026

For a command-line argument parser for Rust, the strongest matches are clap-rs/clap (Clap is the most comprehensive Rust argument-parsing library, offering), texitoi/structopt (Structopt is a Rust library that lets you define) and google/argh (argh is a Rust derive-based argument parsing library that). Each is ranked by relevance to your query, popularity and recent activity.

Libraries and frameworks for building robust command line interfaces and parsing arguments in Rust applications.

Rust Command Line Argument Parsers

Find the best repos with AI.We'll search the best matching repositories with AI.
  • clap-rs/clapclap-rs avatar

    clap-rs/clap

    16,528View on GitHub↗

    Clap is a command-line argument parser for Rust that enables developers to define complex interfaces through strongly-typed data structures. It functions as a comprehensive framework for building terminal applications, automating the transformation of raw string inputs into validated, type-safe code representations while simultaneously generating help documentation and usage statements. The library distinguishes itself by offering both a declarative, attribute-based approach and a fluent builder-pattern API, allowing for flexible interface construction. It includes a sophisticated validation

    Clap is the most comprehensive Rust argument-parsing library, offering a derive macro for struct-based parsing, subcommand support, automatic help generation, value validation, shell completion generation, and extensive customization — exactly what you need for a CLI application.

    RustNested Command StructuresShell Completion GeneratorsSubcommand Registration
    View on GitHub↗16,528
  • texitoi/structoptTeXitoi avatar

    TeXitoi/structopt

    2,727View on GitHub↗

    Parse command line arguments by defining a struct.

    Structopt is a Rust library that lets you define CLI arguments as a struct with a derive macro, providing automatic help generation, subcommand support, and default values, which matches the request for a command-line argument parsing library; however, it may not include built-in shell completion generation or custom error messages as part of its core feature set.

    RustArgument ParsingCommand Line InterfacesDeveloper Tools
    View on GitHub↗2,727
  • google/arghgoogle avatar

    google/argh

    1,928View on GitHub↗

    Rust derive-based argument parsing optimized for code size

    argh is a Rust derive-based argument parsing library that supports struct-based parsing, subcommands, and automatic help generation, which directly fits the search for a Rust CLI argument parser — though its focus on minimal code size means it lacks built-in shell completion generation and has limited error customization compared to more full-featured options.

    RustCommand Line InterfacesDeveloper Tools
    View on GitHub↗1,928

Related searches

  • a library for building Rust CLI applications
  • a java library for building cli applications
  • a library for building Kotlin CLI applications
  • a CLI building framework for Python
  • a Go framework for building CLI tools
  • a ruby framework for building cli applications
  • a library for building C# CLI applications
  • a library for managing configuration in Rust