#arguments-parser #cli-parser #parser

no-std bin+lib clap

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

336 releases (stable)

new 4.5.35 Apr 1, 2025
4.5.34 Mar 27, 2025
4.5.31 Feb 24, 2025
4.5.23 Dec 5, 2024
0.5.7 Mar 31, 2015

#3 in Command-line interface

Download history 3361306/week @ 2024-12-14 1768481/week @ 2024-12-21 2025305/week @ 2024-12-28 3556541/week @ 2025-01-04 3795805/week @ 2025-01-11 3455999/week @ 2025-01-18 3698358/week @ 2025-01-25 4146467/week @ 2025-02-01 4363969/week @ 2025-02-08 4168658/week @ 2025-02-15 4451791/week @ 2025-02-22 4694612/week @ 2025-03-01 4892557/week @ 2025-03-08 5134349/week @ 2025-03-15 5207310/week @ 2025-03-22 4116138/week @ 2025-03-29

20,149,106 downloads per month
Used in 34,730 crates (21,330 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
~105K SLoC