#arguments-parser #cli-parser #parser

no-std bin+lib clap

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

364 releases (stable)

Uses new Rust 2024

4.6.1 Apr 15, 2026
4.6.0 Mar 12, 2026
4.5.60 Feb 19, 2026
4.5.53 Nov 19, 2025
0.5.7 Mar 31, 2015

#7 in Command-line interface

Download history 9739576/week @ 2026-02-20 10879396/week @ 2026-02-27 11659112/week @ 2026-03-06 11458162/week @ 2026-03-13 11054606/week @ 2026-03-20 11336040/week @ 2026-03-27 10869027/week @ 2026-04-03 12037357/week @ 2026-04-10 12098891/week @ 2026-04-17 13164385/week @ 2026-04-24 12932885/week @ 2026-05-01 14867613/week @ 2026-05-08 15930896/week @ 2026-05-15 15003105/week @ 2026-05-22 15811001/week @ 2026-05-29 16858573/week @ 2026-06-05

66,394,767 downloads per month
Used in 64,005 crates (40,748 directly)

MIT/Apache

1MB
13K 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.

Get Started

$ cargo add clap

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–5MB
~112K SLoC