picocli
picocli copied to clipboard
Honor spaces in autocomplete candidates
Fixes #1754
- Both positional params and option candidates are now stored in the autocomplete script as an array.
- By setting
IFS=$'\n'
for those scenarios, each array entry is treated as a single candidate, allowing to honor any spaces in the original suggestions coded by the user. - Values still need to be double-escaped for proper handling.
Thank you for the PR! Checking...
@remkop any feedback on this?
Oops! Sorry for the long wait. I have not been able to spend much time on picocli recently... Also, this ticket seems related to https://github.com/remkop/picocli/issues/1644 , so I want to look at both together. I have not forgotten about it though!
Merged. Thank you for the contribution!
@remkop glad to help! Any rough timelines for 4.7?
Started the release process now...