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(zsh): Separate options from _arguments options #5523

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

ben--
Copy link
Contributor

@ben-- ben-- commented Jun 7, 2024

This PR resolves #5521

The zsh _arguments completion function has the following syntax:

_arguments [ARGUMENTS_OPTIONS] [:] COMMAND_ARG...

Where the optional colon is used to disambiguate options consumed by the _arguments function itself.

If this colon is missing and the first COMMAND_ARG conflicts with one of the options supported by _arguments, then it is misinterpreted resulting in missing options or the "unknown match specification character" seen above.

@ben-- ben-- changed the title fix(zsh): separate declared options from _arguments options fix(zsh): Separate options from _arguments options Jun 7, 2024
@epage epage merged commit 7e1bbf8 into clap-rs:master Jun 7, 2024
22 checks passed
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.

zsh completion ignores or fails options consumed by the zsh _arguments helper function
2 participants