#arguments-parser #cli-parser #parser

no-std bin+lib clap

A simple to use, efficient, and full-featured Command Line Argument Parser

365 releases (stable)

Uses new Rust 2024

new 4.6.2 Jul 15, 2026
4.6.0 Mar 12, 2026
4.5.53 Nov 19, 2025
4.5.42 Jul 30, 2025
0.5.7 Mar 31, 2015

#7 in Command-line interface

Download history 11335658/week @ 2026-03-25 10821100/week @ 2026-04-01 11739713/week @ 2026-04-08 12083256/week @ 2026-04-15 12933548/week @ 2026-04-22 12874853/week @ 2026-04-29 14183897/week @ 2026-05-06 15620433/week @ 2026-05-13 15026451/week @ 2026-05-20 15652080/week @ 2026-05-27 16565575/week @ 2026-06-03 16059216/week @ 2026-06-10 14763690/week @ 2026-06-17 16402461/week @ 2026-06-24 13701518/week @ 2026-07-01 13546754/week @ 2026-07-08

61,019,463 downloads per month
Used in 68,220 crates (43,365 directly)

MIT/Apache

1MB
13K SLoC

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

Dependencies

~0–5MB
~113K SLoC