Hacker GitHub

← All repos

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

Mentions per year 19 mentions · busiest year 2022 (4)
20082026
  1. …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
  2. …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...
  3. …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,…
  4. > 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?
  5. …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
  6. Rust + Clap: https://github.com/clap-rs/clap
    comment by FujiApple · 2022-08-26 · in Ask HN: What do you use to make CLIs?
  7. …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
  8. …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
  9. 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
  10. …logic and move this logic into the derive macro attributes. ¹ https://github.com/docopt/docopt.rs ² https://github.com/clap-rs/clap ³ https://github.com/dbrgn/tealdeer/pull/108 ⁴ https://github.com/dbrgn/tealdeer/pull/108#issuecomment-9448.…
    comment by dbrgn · 2021-12-31 · in Docopt
  11. …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]…
  12. …line argument parser, the most popular being clap [0]. Or you can just use std::env directly. 0: https://github.com/clap-rs/clap
  13. …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
  14. …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
  15. …great macros, see serde[0], clap[1], inline-python[2] [0]: https://github.com/serde-rs/serde [1]: https://github.com/clap-rs/clap [2]: https://docs.rs/inline-python/0.5.3/inline_python/
    comment by conradludgate · 2020-07-16 · in Rust 1.45
  16. …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
  17. …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