clap-rs

    clap-rs/clap

    A full featured, fast Command Line Argument Parser for Rust

    cli
    argument-parser
    argument-parsing
    command-line
    command-line-parser
    parsed-arguments
    positional-arguments
    rust
    subcommands
    Rust
    Apache-2.0
    16.2K stars
    1.2K forks
    16.2K watching
    Updated 2/27/2026
    View on GitHub
    Backblaze Advertisement

    Loading star history...

    Health Score

    75

    Weekly Growth

    +79

    +0.5% this week

    Contributors

    1

    Total contributors

    Open Issues

    412

    Generated Insights

    About clap

    clap

    Command Line Argument Parser for Rust

    Crates.io Crates.io License License Build Status Coverage Status Contributors

    Dual-licensed under Apache 2.0 or MIT.

    Get Started

    $ cargo add clap
    

    About

    Create your command-line parser, with all of the bells and whistles, declaratively or procedurally.

    For more details, see:

    Sponsors

    Gold

    Silver

    Bronze

    Backer

    Discover Repositories

    Search across tracked repositories by name or description