Stack Gems
Menu
← Catalog

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

Reviewed on Stack Gems
[![Reviewed on Stack Gems](https://stackgems.com/badge/clap.svg)](https://stackgems.com/gems/clap)

Related

Rust