#arguments-parser #cli-parser

no-std bin+lib clap

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

335 releases (stable)

new 4.5.34 Mar 27, 2025
4.5.31 Feb 24, 2025
4.5.23 Dec 5, 2024
4.5.21 Nov 13, 2024
0.5.7 Mar 31, 2015

#4 in Command-line interface

Download history 3622083/week @ 2024-12-05 3561255/week @ 2024-12-12 2365290/week @ 2024-12-19 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 4961745/week @ 2025-03-13 4615287/week @ 2025-03-20

19,822,433 downloads per month
Used in 34,370 crates (21,181 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–9MB
~106K SLoC