Skip to content

Commit 9bf0deb

Browse files
authored
Update cli-parser.md
1 parent 4f3ba67 commit 9bf0deb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cli-parser.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ Following Unix and GNU conventions, all commands and arguments, except for short
5252

5353
## Alternatives to clap
5454

55-
* [argh](https://github.com/google/argh): Actively maintained, and has an explicit goal of being small and quick to compile. However, it [follows Fuchsia OS conventions](https://github.com/google/argh/issues/3#issuecomment-581144934) rather than Unix ones, so it's missing several crucial features from a Unix perspective.
55+
* [argh](https://github.com/google/argh): Actively maintained, and has an explicit goal of being low-overhead at runtime. However, it [follows Fuchsia OS conventions](https://github.com/google/argh/issues/3#issuecomment-581144934) rather than Unix ones, so it's missing several crucial features from a Unix perspective.
5656
* [pico-args](https://github.com/RazrFalcon/pico-args): Zero dependencies, quick to compile, and negligible impact on binary size. Does not include help generation, derive support, or as many config flags as clap. A great choice for really simple applications.
5757
* [gumdrop](https://crates.io/crates/gumdrop): a simple argument parser with derive support. Somewhat less popular than clap, and doesn't support deserializing directly to domain types (clap [does](https://github.com/clap-rs/clap/blob/v3.0.6/examples/derive_ref/README.md#arg-types)).
5858

59+
For a comparison of binary size overhead and build times between these parsers and more, see [these benchmarks](https://github.com/rust-cli/argparse-benchmarks-rs).
60+
5961
## Writing your own parser by hand
6062

6163
You *should not* write your own parser completely by hand. Instead, most cases are better served by a simple parser like [pico-args](https://github.com/RazrFalcon/pico-args).

0 commit comments

Comments
 (0)