mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
No description
be15bd5d96
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. |
||
---|---|---|
.github | ||
assets | ||
clap_bench | ||
clap_builder | ||
clap_complete | ||
clap_complete_fig | ||
clap_complete_nushell | ||
clap_derive | ||
clap_lex | ||
clap_mangen | ||
examples | ||
src | ||
tests | ||
.clippy.toml | ||
.gitignore | ||
.pre-commit-config.yaml | ||
Cargo.lock | ||
Cargo.toml | ||
CHANGELOG.md | ||
CITATION.cff | ||
committed.toml | ||
CONTRIBUTING.md | ||
deny.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
Makefile | ||
README.md | ||
release.toml | ||
typos.toml |
clap
Command Line Argument Parser for Rust
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: