Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

ribru17
Copy link
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
25 checks passed
@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