clap-rs /clap

A full featured, fast Command Line Argument Parser for Rust

★ 16,881⑂ 1,326👁 66⑃ 3,095● 2,253▤ 326
RustApache-2.0Created 2015-02-25
Download: v4.6.7v4.6.7 ↓4.6.72026-09-14
+1
Daily
16,881
stars
1,326
forks
66
watchers
3,095
prs
2,253
issues
326
releases

README

clap

 Command Line Argument Parser for Rust









Dual-licensed under Apache 2.0 or MIT.

 Get Started

console
$ cargo add clap


 About

Create your command-line parser, with all of the bells and whistles, declaratively or procedurally.

For more details, see:
- docs.rs
- examples

 Sponsors


 Gold




 Silver




 Bronze




 Backer

Top issues

Discussions

Latest release

v4.6.7 v4.6.7 2026-09-14
[4.6.7] - 2026-09-14

 Features

- (derive) Add [command(defer = )] attribute to opt-in to lazy initialisation of subcommands

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON