clap-rs/clap
View on GitHub ↗ ★ 16,814 Rust
A full featured, fast Command Line Argument Parser for Rust
19 mentions on Hacker News by 16 people: 2 stories, 17 comments · first 2018-09-25 · latest 2026-01-14
20082026
-
▲ 1
Show HN: Convert Go to Ruststory by KingOfCoders · 2026-01-14 · 0 comments
-
…have good quality migration guides. If only all libraries were developed with such professionalism. https://github.com/clap-rs/clap/blob/v4.5.0/CHANGELOG.md
comment by Fluorescence · 2025-07-01 · in Rust CLI with Clap -
…within a function except when that thing being defined is what is being tested in a test, e.g. https://github.com/clap-rs/clap/blob/87647d268c8c27e3298b2c0...
comment by epage · 2024-08-21 · in The weird of function-local types in Rust -
…crate, then cargo test can and does outperform both Maelstrom and nextest. The clap project ( https://github.com/clap-rs/clap)is a good example of this. I think Maelstrom does most of the performance things that nextest does. However,…
comment by nfachan · 2024-07-10 · in Show HN: Maelstrom – A Hermetic, Clustered Test Runner for Python and Rust -
> env.args instead of an argument parsing library. I'm sorry do you not use https://github.com/clap-rs/clap ?
comment by MiguelX413 · 2023-11-09 · in Why Rust in Production? -
…to also help out e,g, https://docs.rs/clap/latest/clap/macro.command.html To enable - Add a `cfg`: https://github.com/clap-rs/clap/blob/master/Cargo.toml#L48 - Enable the nightly feature when the `cfg` is present:…
comment by epage · 2023-08-25 · in Rust 1.72.0 -
Rust + Clap: https://github.com/clap-rs/clap
comment by FujiApple · 2022-08-26 · in Ask HN: What do you use to make CLIs? -
…into an mdbook site but I've stopped short and just have a README that links out to everything ( https://github.com/clap-rs/clap/blob/master/examples/tutoria... ). Its not great.
comment by epage · 2022-05-19 · in Rust: A Critical Retrospective -
…language taking the fear of intractable bugs away: - < https://github.com/BurntSushi/ripgrep > - < https://github.com/clap-rs/clap > - < https://github.com/rayon-rs/rayon > - < https://github.com/cloudflare/wrangler > - <…
comment by yakubin · 2022-05-19 · in The Rust Borrow Checker – A Deep Dive -
This thread inspired me—I found a way to remove 40K: https://github.com/clap-rs/clap/pull/3370 I'm sure it's possible to cut it more. It'll never be tiny, but it can be smaller than it is now.
comment by duckerude · 2022-01-29 · in An update on rust/coreutils -
…argparse uses 2 [2] I feel like we looked at more but can't remember which all they were [0] https://github.com/clap-rs/clap/pull/1637#issuecomment-58103... [1] https://tldp.org/LDP/abs/html/exitcodes.html [2]…
comment by epage · 2021-11-02 · in Sysexits – preferable exit codes for programs -
…line argument parser, the most popular being clap [0]. Or you can just use std::env directly. 0: https://github.com/clap-rs/clap
comment by ibraheemdev · 2021-01-25 · in Show HN: Rust-starter, a boilerplate to build Rust CLI applications -
…improve issues greatly. [1] https://github.blog/2020-05-06-new-from-satellite-2020-githu... [2] https://github.com/clap-rs/clap/discussions
comment by dkersten · 2020-10-05 · in The open source paradox -
…except suggestions[2]. [0] https://github.com/BurntSushi/ripgrep/commit/c8e755f11f31b6d... [1] https://github.com/clap-rs/clap/commit/739e7048a50d14023ef9e... [2] https://github.com/BurntSushi/ripgrep/blob/def993bad1a9275cd...
comment by csnover · 2020-10-04 · in Rust Starter Kit 2020 -
…on generating completions for applications that make use of the clap command-line argument parser. https://github.com/clap-rs/clap https://crates.io/crates/clap Among other things I found this currently open issue that has a lot of…
comment by codetrotter · 2019-05-19 · in Shell Completions in Rust -
▲ 3
Clap: A Full Featured, Fast Command Line Argument Parser for Ruststory by the_other_guy · 2019-01-06 · 0 comments
-
…about binaries providing completions, I think we'll see more of that as tools adopt frameworks like https://github.com/clap-rs/clap or https://pypi.org/project/argcomplete/ which can provide completions for your favorite shell. But I do…
comment by lzybkr · 2018-09-25 · in Creating a bash completion script