Decision Workspace
clap vs structopt vs argh
Side-by-side comparison of Rust crates
73
clap
stablev4.6.1
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.
64
argh
growingv0.1.19
Derive-based argument parsing optimized for code size
Core Metrics
| clap | structopt | argh | |
|---|---|---|---|
| Health Score | 73 | 58 | 64 |
| Total Downloads | 848.9M | 81.6M | 12.9M |
| 30d Downloads | 63.0M | 2.1M | 617.2K |
| Dependents | 361.4K | 31.2K | 3.9K |
| Releases | 456 | 60 | 20 |
| Last Updated | 40d ago | 1588d ago | 70d ago |
| Age | 11y 2m | 9y 3m | 6y 11m |
Health Breakdown
clap
Maintenance
17
Quality
17
Community
19
Popularity
8
Documentation
12
structopt
Maintenance
7
Quality
15
Community
16
Popularity
8
Documentation
12
argh
Maintenance
13
Quality
16
Community
18
Popularity
8
Documentation
9
Technical Details
| clap | structopt | argh | |
|---|---|---|---|
| Version | 4.6.1 | 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 | 62KB | 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 73/100, but none of the options score above 80.
- •clap is depended on by 361.4K crates — strongest ecosystem trust.
- •⚠ structopt has not been updated in over a year.
- •structopt, argh are pre-1.0 — API may change.