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

feat(complete): Support to run ZSH completion as a script #4734

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

XiaoXiaoSN
Copy link
Contributor

The PR try to fix #3508.

On the PR, the ZSH completion script can be executed directly using the command source <(cargo run -- --generate=zsh) without facing the error _arguments:comparguments:325: can only be called from completion function

@epage
Copy link
Member

epage commented Feb 27, 2023

Thanks!

@epage epage merged commit e9535a3 into clap-rs:master Feb 27, 2023
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.

generated zsh completion fails when source <()'d
2 participants