# clap

> Command line argument parser for Rust

**Category:** Rust  
**Pricing:** open-source  
**URL:** https://docs.rs/clap  
**GitHub:** https://github.com/clap-rs/clap  
**Added:** 2026-08-19

---

## The Hook

clap turns structs into command-line interfaces.

## 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.
