completions for subcommand aliases #5243
Labels
A-completion
Area: completion generator
C-enhancement
Category: Raise on the bar on expectations
E-hard
Call for participation: Experience needed to fix: Hard / a lot
Please complete the following tasks
Clap Version
4.2.7
Describe your use case
A subcommand called
catalog
has aliasesdir
andls
. Whenclap_complete
generates the zsh script it omits the aliases. As a result if a user triesls
they will not get the completions, and even worse, it tends to block the shell's natural path completions, making the tool less friendly instead of more.Describe the solution you'd like
This appears easy to solve, you simply copy the block of the subcommand substituting the alias, such as
Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: