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

Zsh completions don't work if subcommand alias is used #357

Open
marcospb19 opened this issue Feb 3, 2023 · 2 comments
Open

Zsh completions don't work if subcommand alias is used #357

marcospb19 opened this issue Feb 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@marcospb19
Copy link
Member

Version

0.4.1

Description

Zsh completions won't complete when an alias is used as subcommand.

Current Behavior

If you ask for completions:

cargo d <TAB>

Nothing happens.

Expected Behavior

Completions should suggest files, as they do for:

cargo decompress <TAB>

Additional Information

This is likely an issue with 'clap_complete' that needs to be reported.

@marcospb19 marcospb19 added the bug Something isn't working label Feb 3, 2023
@figsoda
Copy link
Member

figsoda commented Feb 3, 2023

upstream issue: clap-rs/clap#4265

@marcospb19
Copy link
Member Author

Sourcing the completion script and then running test will not suggest bar and test bar will not suggest --my-flag.

The first bug was solved, but the second still exists.

ouch <TAB> suggests d as well as decompress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants