argh
argh: A focused, free Rust CLI parser with typed derives, subcommands, help, and completions. Ranked #9 of 60 in Command-Line Interface Frameworks by our editors (8.6/10); pricing: Free plan; best for rust CLIs using derive-based argument structs.
At a glance
- Editor score8.6 / 10
- PricingFree plan
- Best forRust CLIs using derive-based argument structs
- Free planYes
- Paid fromFree
- Shell completionYes
- Facts checked17 Nov 2026
Where it wins
- FromArgs derive macro creates typed command-line argument structures
- Supports nested and dynamically discovered subcommands
- argh_complete generates Bash, Fish, Nushell, and Zsh scripts
Where it doesn't
- No configuration-file binding is provided
- No environment-variable binding is provided
- Support is provided through documentation channels
Our verdict on argh
argh is an open-source Rust library for parsing command-line arguments in applications that prioritize small binaries and conformance with the Fuchsia command-line tools specification. Its FromArgs derive macro lets developers declare argument structures, while from_env handles process arguments. The library suits solo developers through enterprise teams building Rust command-line tools that need typed parsing without a hosted service.
The published offering is a single open-source plan: argh is free to use and licensed under BSD-3-Clause. Its parsing scope covers switches, options, positional arguments, repeating arguments, default values, and custom parsing functions. Typed conversion is handled through FromArgValue and FromStr, and automatic help and usage text generation reduces the amount of command-line presentation code required. There are no paid tiers described, so the feature set is centered on the library itself rather than plan-based additions.
For shell integration, the companion argh_complete crate generates completion scripts for Bash, Fish, Nushell, and Zsh. Hierarchical and dynamically discovered subcommands support command trees that can grow beyond a single executable entry point, while self-hosted deployment fits projects distributing their own binaries. The trade-off is a narrow configuration surface: configuration-file and environment-variable binding are not provided. Teams wanting derive-based Rust parsing, typed conversion, automatic help, and shell completions should consider argh; projects that require built-in config or environment binding should choose a framework offering those capabilities.
Your product? Our editors can test argh in depth and publish a review, labelled as paid · from $149/mo →
argh pricing
argh fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Shell completion | Yes |
| Nested subcommands | Yes |
| Code generation | Yes |
| Config file support | No |
| Environment variables | No |
| Typed API | Yes |
| Deployment | Self-hosted |
| Support | Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Pricing | Free plan |
| Website | docs.rs |
| Facts checked | 17 Nov 2026 |
Alternatives to argh
- ClapA free Rust crate with typed parsing, nested commands, validation, and completions.9.4
- ClickA free, open-source toolkit for typed, nested Python command-line applications.9.3
- TyperFree, open-source typed CLI framework with nesting, completions, and configuration support.9.2
Used argh? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used argh for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
argh is listed in our Command-Line Interface Frameworks directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/argh/"><img src="https://www.itechguides.com/best/badge/argh.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update