Skip to content

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
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