No description
Find a file
Pawel Zmarzly be15bd5d96 fix(complete): Fix zsh.rs subcommand deduplication
Fixing the iteration over all_subcommands in zsh.rs. We deduplicate
values on (sc_name, bin_name) keys, but then only iterate on bin_name.
This doesn't cause problems now, since all bin names seem to be unique.
However, without fixing this, the next commit would have started
generating duplicated functions with same names.

For example, with an #[long = "foo", visible_alias = "bar"] subcommand,
we'll end up with 2 pairs: [("foo", "foo"), ("bar", "foo")]. Before this
commit, we would have ended up generating _my-app__foo_commands()
functions. These functions should have identical content, so it is not
an error, just an inefficiency that we can fix.
2024-05-17 15:16:43 +01:00
.github chore(deps): Update Rust Stable to v1.78 (#5493) 2024-05-14 19:13:06 +00:00
assets docs: Make clap logo background transparent 2023-06-14 01:58:18 +02:00
clap_bench chore: Update from template 2024-05-14 12:27:02 -05:00
clap_builder style: Make clippy happy 2024-05-14 14:06:10 -05:00
clap_complete fix(complete): Fix zsh.rs subcommand deduplication 2024-05-17 15:16:43 +01:00
clap_complete_fig chore: Update from template 2024-05-14 12:27:02 -05:00
clap_complete_nushell chore: Update from template 2024-05-14 12:27:02 -05:00
clap_derive chore: Update from template 2024-05-14 12:27:02 -05:00
clap_lex chore: Update from template 2024-05-14 12:27:02 -05:00
clap_mangen chore: Update from template 2024-05-14 12:27:02 -05:00
examples chore: Update from template 2024-05-14 12:27:02 -05:00
src chore: Update from template 2024-05-14 12:27:02 -05:00
tests chore: Update from template 2024-05-14 12:27:02 -05:00
.clippy.toml chore(ci): Allow prelude wildcard imports 2024-04-26 11:36:19 -05:00
.gitignore chore: First step 2023-03-29 14:33:22 -05:00
.pre-commit-config.yaml chore: Update from '_rust/main' 2023-12-04 11:05:47 -06:00
Cargo.lock chore: Update from template 2024-05-14 12:27:02 -05:00
Cargo.toml chore: Update from template 2024-05-14 12:27:02 -05:00
CHANGELOG.md chore: Release 2024-03-25 16:08:19 -05:00
CITATION.cff chore: Release 2024-03-25 16:08:19 -05:00
committed.toml chore: First step 2023-03-29 14:33:22 -05:00
CONTRIBUTING.md docs(contrib): Remove reference to travis 2023-03-29 14:40:57 -05:00
deny.toml chore: Approve ISC 2023-09-07 09:33:44 -05:00
LICENSE-APACHE chore: First step 2023-03-29 14:33:22 -05:00
LICENSE-MIT chore: First step 2023-03-29 14:33:22 -05:00
Makefile chore: Update MSRV to 1.74 2024-02-08 09:45:17 -06:00
README.md Merge pull request #7 from peter-kehl/readme_pass_markdown_lint 2023-10-02 15:49:33 -05:00
release.toml chore: Update owners 2023-05-19 20:00:10 -05:00
typos.toml docs: Fix typos 2021-11-17 15:21:58 -06:00

clap

Command Line Argument Parser for Rust

Crates.io Crates.io License License Build Status Coverage Status Contributors

Dual-licensed under Apache 2.0 or MIT.

About

Create your command-line parser, with all of the bells and whistles, declaratively or procedurally.

For more details, see:

Sponsors

Gold

Silver

Bronze

Backer