#arguments-parser #parser #procedural #cli-parser

no-std bin+lib clap

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

341 releases (stable)

4.5.40 Jun 9, 2025
4.5.37 Apr 18, 2025
4.5.34 Mar 27, 2025
4.5.23 Dec 5, 2024
0.5.7 Mar 31, 2015

#5 in Command-line interface

Download history 4694612/week @ 2025-03-01 4892557/week @ 2025-03-08 5134349/week @ 2025-03-15 5199946/week @ 2025-03-22 4809973/week @ 2025-03-29 5123103/week @ 2025-04-05 4744332/week @ 2025-04-12 4659538/week @ 2025-04-19 4483899/week @ 2025-04-26 4411320/week @ 2025-05-03 4720909/week @ 2025-05-10 4970205/week @ 2025-05-17 4085492/week @ 2025-05-24 4512604/week @ 2025-05-31 4824970/week @ 2025-06-07 4555298/week @ 2025-06-14

18,675,215 downloads per month
Used in 36,799 crates (22,794 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.

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–13MB
~123K SLoC