#arguments-parser #parser #cli

no-std bin+lib clap

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

352 releases (stable)

4.5.51 Oct 29, 2025
4.5.48 Sep 19, 2025
4.5.42 Jul 30, 2025
4.5.34 Mar 27, 2025
0.5.7 Mar 31, 2015

#4 in Command-line interface

Download history 5396155/week @ 2025-07-25 5462706/week @ 2025-08-01 5899785/week @ 2025-08-08 5322468/week @ 2025-08-15 5444497/week @ 2025-08-22 5639182/week @ 2025-08-29 5871028/week @ 2025-09-05 5690226/week @ 2025-09-12 5830052/week @ 2025-09-19 6034198/week @ 2025-09-26 5929374/week @ 2025-10-03 5953713/week @ 2025-10-10 6271337/week @ 2025-10-17 7044453/week @ 2025-10-24 6962046/week @ 2025-10-31 5838430/week @ 2025-11-07

27,262,437 downloads per month
Used in 42,244 crates (26,597 directly)

MIT/Apache

1MB
14K 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–12MB
~109K SLoC