clap-rs/clap
A full featured, fast Command Line Argument Parser for Rust observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 8
- age_days: 4207
- days_rel: 27
- days_push: 7
- n_releases_24m: 46
Adoption not part of the score
16664 stars · 1240 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
clap is a full-featured, fast command line argument parser library for Rust. It supports declarative (derive-based) and procedural parser construction with subcommands, positional arguments, help generation, and validation.
Use cases
- parse command line arguments in a Rust CLI
- define subcommands and flags for a terminal tool
- auto-generate help and usage text
- validate positional and optional arguments
- build a multi-command CLI like git-style tools
When to choose
- you are writing a command line application or tool in Rust
- you need robust argument parsing with help, errors, and subcommands out of the box
- you want a mature, widely adopted, dual-licensed (MIT/Apache-2.0) parser
When to avoid
- you are not writing in Rust
- you need a GUI or web argument handling rather than CLI parsing
- you want a minimal hand-rolled parser with zero dependencies
Facets
library · maturity stable
parser cli developer-tools developer-tools parsers rust cross-platform cli argument-parsing subcommands derive-macros command-line-interfaces command-line
1 source
- readme: https://github.com/clap-rs/clap · fetched 2026-08-28 · 6693649b7011
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| clap-rs/clap | main | 98 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem