-
|
I am converting a tool to use Picocli, and things were going well until I found a place where the app is being called with quotes grouping the options with their values, e.g.
It was parsing okay without any quotes, and it will parse okay if I add equals signs to join the option and value, but I can't figure out how to make it parse as is. The error is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hello @chabala, thank you for your question. I believe this is expected behavior by the shell. The shell will pass the quoted value as a single string element in the array passed to the |
Beta Was this translation helpful? Give feedback.
Picocli itself does not provide features for this, but one idea is
to take the String[] array that is passed to the main method, and split any strings that contain spaces into multiple strings, and combine them again into a single array, before invoking picocli.