clap-rs/clap

A full featured, fast Command Line Argument Parser for Rust

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 24 minutes ago
Added to GitGenius on September 3rd, 2026
Created on February 25th, 2015
Open Issues & Pull Requests: 448 (+0)
GitHub issues: Enabled
Number of forks: 1,246
Total Stargazers: 16,689 (+0)
Total Subscribers: 70 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 8.3 hours
Mean response time: 74.9 days
90th percentile: 55.2 days
Tracked items: 336

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 85% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "A-help" is answered fastest, typically in about 4 hours, while "E-easy" waits about 3 days. 80% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 3% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 187
New in 7 days: 1
Closed in 7 days: 1
Avg open age: 892 days
Stale 30+ days: 168
Stale 90+ days: 138

Recent activity

Opened in 7 days: 1
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • C-enhancement (158)
  • C-bug (148)
  • A-completion (76)
  • S-waiting-on-design (54)
  • A-help (53)
  • S-triage (52)
  • A-parsing (43)
  • A-derive (42)

Detailed Description

clap is a command-line argument parser for Rust that supports both declarative and procedural definition styles.

The tool addresses the need to parse command-line arguments with comprehensive feature support including subcommands, positional arguments, and various option types. Developers can define their parsers either declaratively through a builder pattern or procedurally through macros, choosing the approach that best fits their use case. The parser handles validation, help text generation, and argument processing automatically.

The tool suits any Rust project requiring command-line argument handling, from simple utilities to complex applications with multiple subcommands. It works well for developers who want to avoid manual argument parsing logic and need features like automatic help generation, argument validation, and support for both short and long flags. The project is particularly valuable for those building CLI tools where reliability and user experience matter, as it handles edge cases and provides clear error messages.

The project maintains steady activity with regular commits addressing bug fixes and feature requests. Development includes ongoing refinement of the parser's behavior and expansion of documentation through examples. The maintainers respond to issues and pull requests, indicating active stewardship of the codebase. The project sustains multiple sponsorship tiers, suggesting it has gained recognition and support within the Rust ecosystem.