Type ./completion-example (note the trailing space)
Press tab to accept the first completion
Press space.
Type 1 (the first character of one of the arguments.
Expected behavior
It should suggest completions for the argument from the option group, as it did for the argument in the command (step 3).
Actual behavior
It doesn't show any completions for the arguments in the option group (step 4). When starting to type any of the options that should be suggested (step 5), it prints that there are no matches (probably from zsh-autosuggestions).
Zsh completions are not shown for arguments that are added to a command using an
@OptionGroup
and that have acustom
completion kind.ArgumentParser version:
main
Swift version:Checklist
main
branch of this packageSteps to Reproduce
Create a command with an option group with an arguments with a custom completion kind.
Install the completions in your terminal and load them, steps will vary per environment, for me the steps are.
swift build
Type
./completion-example
(note the trailing space)Press tab to accept the first completion
Press space.
Type
1
(the first character of one of the arguments.Expected behavior
It should suggest completions for the argument from the option group, as it did for the argument in the command (step 3).
Actual behavior
It doesn't show any completions for the arguments in the option group (step 4). When starting to type any of the options that should be suggested (step 5), it prints that there are no matches (probably from
zsh-autosuggestions
).