clap
Command line argument parser for Rust
Rust / Systems · OSS/MIT · 16.7k
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
[](https://stackgems.com/gems/clap)