#arguments-parser #parser

no-std bin+lib clap

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

354 releases (stable)

4.5.53 Nov 19, 2025
4.5.51 Oct 29, 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 5968963/week @ 2025-09-03 5719448/week @ 2025-09-10 5711019/week @ 2025-09-17 5929453/week @ 2025-09-24 5939248/week @ 2025-10-01 5853077/week @ 2025-10-08 6280115/week @ 2025-10-15 6743533/week @ 2025-10-22 7002322/week @ 2025-10-29 7071078/week @ 2025-11-05 7138848/week @ 2025-11-12 7529867/week @ 2025-11-19 5772947/week @ 2025-11-26 7429193/week @ 2025-12-03 6474230/week @ 2025-12-10

20,899,052 downloads per month
Used in 44,888 crates (28,221 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–12MB
~114K SLoC