#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 1696331/week @ 2024-12-26 3074427/week @ 2025-01-02 3847763/week @ 2025-01-09 3504626/week @ 2025-01-16 3698616/week @ 2025-01-23 3893944/week @ 2025-01-30 4398637/week @ 2025-02-06 4004461/week @ 2025-02-13 4539806/week @ 2025-02-20 4508565/week @ 2025-02-27 4915143/week @ 2025-03-06 4960933/week @ 2025-03-13 5481370/week @ 2025-03-20 4734962/week @ 2025-03-27 5029199/week @ 2025-04-03 4224807/week @ 2025-04-10

20,382,695 downloads per month
Used in 35,057 crates (21,543 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
~106K SLoC