clap-rs/clap

A full featured, fast Command Line Argument Parser for Rust

16,690

stars

8,762

commits

Rust

primary language

Sep 8, 2026

updated

docs.rs/clap
argument-parser
argument-parsing
command-line
command-line-parser
parsed-arguments
positional-arguments
rust
subcommands

README

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

Contributors

(top 30 of 414)

epage

4,115 commits

kbknapp

1,746 commits

pksunkara

412 commits

bors[bot]

327 commits

clap-rs/clap

A full featured, fast Command Line Argument Parser for Rust

16,690

stars

8,762

commits

Rust

primary language

Sep 8, 2026

updated

docs.rs/clap
argument-parser
argument-parsing
command-line
command-line-parser
parsed-arguments
positional-arguments
rust
subcommands

README

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

Contributors

(top 30 of 414)

epage

4,115 commits

kbknapp

1,746 commits

pksunkara

412 commits

bors[bot]

327 commits

Languages

Rust

89.1%

Shell

6.8%

PowerShell

2.5%