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.
This PR fixes issue #5521
The zsh
_arguments
completion function has the following syntax: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 theunknown match specification character
seen above.