picocli icon indicating copy to clipboard operation
picocli copied to clipboard

Trim single quotes with setTrimQuotes(true)

Open n-peugnet opened this issue 4 years ago • 1 comments

Hi, I use single quotes around a json string that I pass to the cli. I expected that the option TrimQuotes would trim them but it seems that currently only double quotes are trimmed.

n-peugnet avatar Jun 16 '20 23:06 n-peugnet

Thank you for raising this. I will look into supporting single quotes as well.

The current implementation supports many use cases (see #595 and #738 for background). This may take me some time, to make sure we get the edge cases right, like single and double quote combinations.

Test cases and/or a pull request would be great. :-)

remkop avatar Jun 17 '20 04:06 remkop