Decision Workspace
clap vs structopt vs argh
Side-by-side comparison of Rust crates
74
clap
stablev4.6.0
A simple to use, efficient, and full-featured Command Line Argument Parser
58
structopt
growingv0.3.26
Parse command line argument by defining a struct.
67
argh
growingv0.1.19
Derive-based argument parsing optimized for code size
Core Metrics
| clap | structopt | argh | |
|---|---|---|---|
| Health Score | 74 | 58 | 67 |
| Total Downloads | 735.7M | 77.9M | 11.8M |
| 30d Downloads | 49.5M | 2.1M | 643.5K |
| Dependents | 312.6K | 31.0K | 3.7K |
| Releases | 455 | 60 | 20 |
| Last Updated | 15d ago | 1529d ago | 11d ago |
| Age | 11y 1m | 9y 1m | 6y 9m |
Health Breakdown
clap
Maintenance
18
Quality
17
Community
19
Popularity
8
Documentation
12
structopt
Maintenance
7
Quality
15
Community
16
Popularity
8
Documentation
12
argh
Maintenance
16
Quality
16
Community
18
Popularity
8
Documentation
9
Technical Details
| clap | structopt | argh | |
|---|---|---|---|
| Version | 4.6.0 | 0.3.26 | 0.1.19 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | Apache-2.0 OR MIT | BSD-3-Clause |
| Dependencies | 11 | 7 | 5 |
| Crate Size | 63KB | 54KB | 32KB |
| Features | 21 | 10 | 4 |
| Yanked % | 20.2% | 8.3% | 0.0% |
| Edition | 2024 | 2018 | 2018 |
| MSRV | 1.85 | — | — |
| Owners | 3 (team) | 2 | 6 |
Links
Quick Verdict
- •clap leads with a health score of 74/100, but none of the options score above 80.
- •clap is depended on by 312.6K crates — strongest ecosystem trust.
- •⚠ structopt has not been updated in over a year.
- •structopt, argh are pre-1.0 — API may change.