A full featured, fast Command Line Argument Parser for Rust
  • Rust 90.9%
  • Shell 5%
  • PowerShell 2.6%
  • Nushell 0.6%
  • Elvish 0.4%
  • Other 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-05-10 17:45:52 +02:00
.cargo chore: Ensure MSRV-aware resolver is used 2025-03-05 11:48:22 -06:00
assets docs: Make clap logo background transparent 2023-06-14 01:58:18 +02:00
clap_bench Add proc-macro2 dependency to clap_derive 2026-05-10 16:04:07 +02:00
clap_builder Fix clap_lex dependencies to use package from kade/clap multicrate 2026-05-10 17:45:28 +02:00
clap_complete Fix clap_lex dependencies to use package from kade/clap multicrate 2026-05-10 17:45:28 +02:00
clap_complete_nushell Add proc-macro2 dependency to clap_derive 2026-05-10 16:04:07 +02:00
clap_derive Add proc-macro2 dependency to clap_derive 2026-05-10 16:04:07 +02:00
clap_lex Remove circular dependency from clap_lex 2026-05-10 17:45:52 +02:00
clap_mangen Add proc-macro2 dependency to clap_derive 2026-05-10 16:04:07 +02:00
examples chore: Upgrade to 2025 edition 2026-03-12 12:50:54 -05:00
src chore: Release 2026-03-12 14:10:27 -05:00
tests fix: Make ui_tests test conditional on env feature 2026-03-26 20:26:45 +00:00
.gitignore chore: First step 2023-03-29 14:33:22 -05:00
Cargo.lock chore: Update compatible dependencies 2026-04-01 10:15:40 -05:00
Cargo.toml Add clap_lex back to workspace 2026-05-10 17:44:12 +02:00
Cargo.toml.backup Add proc-macro2 dependency to clap_derive 2026-05-10 16:04:07 +02:00
CITATION.cff chore: Release 2026-03-12 14:10:27 -05:00
committed.toml chore: First step 2023-03-29 14:33:22 -05:00
LICENSE-APACHE chore: First step 2023-03-29 14:33:22 -05:00
LICENSE-MIT chore: First step 2023-03-29 14:33:22 -05:00
Makefile chore(deps): Update Rust Stable to v1.94 (#6297) 2026-03-06 15:38:03 +00:00
README.md docs(readme): Experiment with alternative sponsor size 2026-01-16 13:04:34 -06:00
typos.toml docs: Fix typos 2021-11-17 15:21:58 -06:00

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