clap
Command line argument parser for Rust
Rust / Systems · Apache-2.0 · 16.8k
Reviewed 2026-08-19 · last push 2026-10-06 · repo checked 2026-10-21
What's Good
Derive macros generate parsers from struct definitions. Help text generates automatically. Shell completions work. Subcommands are straightforward.
The Catch
Compile times increase with complex CLIs. Some advanced patterns require builder API. Error messages could be clearer.
Verdict
The CLI argument parser most Rust projects use.
Embed
Maintainer? Add the badge to your README. It is free, links to this review, and there is no paid version.
Markdown
[](https://stackgems.com/gems/clap)
HTML
<a href="https://stackgems.com/gems/clap"><img src="https://stackgems.com/badge/clap.svg" alt="clap reviewed on Stack Gems" height="20"></a>