Skip to content

fix(complete): remove duplicate bash subcmd cases caused by aliases#5846

Merged
epage merged 1 commit intoclap-rs:masterfrom
ribru17:alias_fn_dedup
Dec 16, 2024
Merged

fix(complete): remove duplicate bash subcmd cases caused by aliases#5846
epage merged 1 commit intoclap-rs:masterfrom
ribru17:alias_fn_dedup

Conversation

@ribru17
Copy link
Copy Markdown
Contributor

@ribru17 ribru17 commented Dec 16, 2024

Visible alias completions were causing duplicate case conditions when offering subcommand completions, due to the fact that they share the same function name as the command they are aliasing. This commit deduplicates them so as to not redefine the exact same case statement logic.

**Problem:** Visible alias completions were causing duplicate case
conditions when offering subcommand completions, due to the fact that
they share the same function name as the command they are aliasing.

**Solution:** Deduplicate them so as to not redefine the exact same case
statement logic.
@epage epage merged commit cd622ab into clap-rs:master Dec 16, 2024
@ribru17 ribru17 deleted the alias_fn_dedup branch December 16, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants