#arguments-parser #positional-arguments

no-std bin+lib clap

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

337 releases (stable)

new 4.5.36 Apr 11, 2025
4.5.34 Mar 27, 2025
4.5.23 Dec 5, 2024
4.5.21 Nov 13, 2024
0.5.7 Mar 31, 2015

#6 in Command-line interface

Download history 1707246/week @ 2024-12-25 2661709/week @ 2025-01-01 3773249/week @ 2025-01-08 3528344/week @ 2025-01-15 3696233/week @ 2025-01-22 3780593/week @ 2025-01-29 4356007/week @ 2025-02-05 4055518/week @ 2025-02-12 4483027/week @ 2025-02-19 4426632/week @ 2025-02-26 4887453/week @ 2025-03-05 4979892/week @ 2025-03-12 5486677/week @ 2025-03-19 4747118/week @ 2025-03-26 5009542/week @ 2025-04-02 4410980/week @ 2025-04-09

20,544,572 downloads per month
Used in 35,025 crates (21,521 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–9.5MB
~104K SLoC