Decision Workspace
clap vs structopt vs argh
Side-by-side comparison of Rust crates
70
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.
62
argh
growingv0.1.19
Derive-based argument parsing optimized for code size
Core Metrics
| clap | structopt | argh | |
|---|---|---|---|
| Health Score | 70 | 58 | 62 |
| Total Downloads | 961.9M | 84.8M | 14.1M |
| 30d Downloads | 42.6M | 1.1M | 473.2K |
| Dependents | 407.9K | 31.3K | 4.2K |
| Releases | 456 | 60 | 20 |
| Last Updated | 89d ago | 1637d ago | 119d ago |
| Age | 11y 4m | 9y 5m | 7y |
Health Breakdown
clap
Maintenance
14
Quality
17
Community
19
Popularity
8
Documentation
12
structopt
Maintenance
7
Quality
15
Community
16
Popularity
8
Documentation
12
argh
Maintenance
11
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 70/100, but none of the options score above 80.
- •clap is depended on by 407.9K crates — strongest ecosystem trust.
- •⚠ structopt has not been updated in over a year.
- •structopt, argh are pre-1.0 — API may change.