A full featured, fast Command Line Argument Parser for Rust

AI Prompts & Endpoints
Agent Skills View CodeWiki Knowledge Base

Repository: clap-rs/clap


Stars: 16307

README.md

clap

Command Line Argument Parser for Rust

![Crates.io](https://crates.io/crates/clap)
![Crates.io](https://crates.io/crates/clap)
![License](LICENSE-APACHE)
![License](LICENSE-MIT)
![Build Status](https://github.com/clap-rs/clap/actions/workflows/ci.yml?query=branch%3Amaster)
![Coverage Status](https://coveralls.io/github/clap-rs/clap?branch=master)
![Contributors](https://github.com/clap-rs/clap/graphs/contributors)

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

<!-- omit in TOC -->

Gold

![](https://opencollective.com/clap)

<!-- omit in TOC -->

Silver

![](https://opencollective.com/clap)

<!-- omit in TOC -->

Bronze

![](https://opencollective.com/clap)

<!-- omit in TOC -->

Backer

![](https://opencollective.com/clap)