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

The "IS_ARRAY" argument aren't auto-completed #72

Open
aik099 opened this issue Nov 27, 2016 · 0 comments
Open

The "IS_ARRAY" argument aren't auto-completed #72

aik099 opened this issue Nov 27, 2016 · 0 comments
Labels

Comments

@aik099
Copy link
Contributor

aik099 commented Nov 27, 2016

I have argument defined with InputArgument::REQUIRED | InputArgument::IS_ARRAY options, which means all non-matched arguments in command line are assigned to this one.

During auto-complete the 1st match is auto-completed just fine, but next matches aren't auto-completed at all.

The issue is in \Stecman\Component\Symfony\Console\BashCompletion\CompletionHandler::mapArgumentsToWords method, that only matches 1 word to 1 argument. So if I have more words then arguments the rest words are just not mapped anywhere, but should be mapped to array-type argument.

See the InputDefinition of Symfony Console for actual processing logic, but generally last defined array argument accepts all non-matched arguments.

@stecman stecman added the bug label Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants