stecman / symfony-console-completion

Automatic tab-key completion for Symfony console application options, arguments and parameters
MIT License
420 stars 26 forks source link

Support completing array arguments multiple times #66

Closed CarsonF closed 8 years ago

CarsonF commented 8 years ago

These arguments can have multiple values. They have to be the last argument (Symfony enforces this). It is the same concept as variadic functions.

If the argument at the current word index doesn't exist it could be a second value for an array input argument. So we can just check and see if the last argument is an array and use it.

stecman commented 8 years ago

Sweet, nice work :ok_hand:

aik099 commented 8 years ago

Nice catch @CarsonF , thanks.