Hacker ApprovedDepartments

clap (Rust crate)

The most recommended of 3 CLI frameworks

Recommended as a declarative Rust argument parser that builds from annotated structs and emits man pages and shell completions. Critics call it large and too clever for small tools.

Recommended as a declarative Rust argument parser that builds from annotated structs and emits man pages and shell completions. Critics call it large and too clever for small tools.

13 people gave an opinion

recommend it
9
criticize it
4
approval share
69%
Each figure is one person. RecommendsCriticizes

Recommended in 9 of 13 months

  1. November 2025: recommended
  2. December 2025: not recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: not recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: not recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 9 people recommend itNeeds 10 or more, not met.
  • 2.3 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 9 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Standard, trusted Rust argument library

    “If it used one of the standard arguments-handling crates (e.g. "clap") there's no way it can happen.”

    Comment from 15 Jul 2026 in “TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access”

    “These aren't randos, these are all de-facto first party libraries.”

    Comment from 21 Aug 2026 in “Malicious Rust Crate Arrayref Runs a Build-Time Payload”

What people warn about

Each mark is one comment

  • Too clever and complex

    “Clap also uses them too much, because a CLI parameter is more complex than a struct field”

    Comment from 22 Dec 2025 in “Rue: Higher level than Rust, lower level than Go”

    “Clap is enormous and seems way too clever for everything I do.”

    Comment from 24 Nov 2025 in “Shai-Hulud Returns: Over 300 NPM Packages Infected”

Other CLI frameworks people recommend

The two most recommended other CLI frameworks, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

clap (Rust crate) compared with 2 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
clap (Rust crate)This page9469%9——
Typer50100%4——
Click Python library5363%3——
See all 3 CLI frameworks, ranked

What people said

9 of the 13 comments that mention it, newest first. Each links to the original comment.

“This generates audio embeddings - much like CLIP does for visual inputs.”

RecommendsComment from 7 Oct 2026 in “Ask HN: Are there AI models for generating sounds based on a text and reference?”

“These aren't randos, these are all de-facto first party libraries.”

RecommendsComment from 21 Aug 2026 in “Malicious Rust Crate Arrayref Runs a Build-Time Payload”

“If it used one of the standard arguments-handling crates (e.g. "clap") there's no way it can happen.”

RecommendsComment from 15 Jul 2026 in “TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access”

“that's the best of all of them”

RecommendsComment from 3 Jun 2026 in “Why Janet?”

“It's declarative (you create and annotate a struct, it generates the parser), and can be augmented with man page generation or shell completion generation.”

RecommendsComment from 2 Feb 2026 in “Tomo: A statically typed, imperative language that cross-compiles to C [video]”

“what gave me pain with Rust for a cli was clap”

CriticizesComment from 9 Jan 2026 in “An Honest Review of Go”

“Clap also uses them too much, because a CLI parameter is more complex than a struct field”

CriticizesComment from 22 Dec 2025 in “Rue: Higher level than Rust, lower level than Go”

“Clap is enormous and seems way too clever for everything I do.”

CriticizesComment from 24 Nov 2025 in “Shai-Hulud Returns: Over 300 NPM Packages Infected”

“Clap went through some major redesigns with the 4.0 release just three years ago.”

RecommendsComment from 24 Nov 2025 in “Shai-Hulud Returns: Over 300 NPM Packages Infected”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.