jcommander icon indicating copy to clipboard operation
jcommander copied to clipboard

Return an empty list when parsing an empty string

Open wfarner opened this issue 7 years ago • 0 comments

Rather than returning a list of size 1 containing an empty string, split an empty string into an empty list.

This could be done application-side with a custom IParameterSplitter, but "" -> [] is less surprising default behavior than "" -> [""]. This also simplifies downstream parsing within jcommander, as the current behavior would pass an empty string to type converters.

wfarner avatar Dec 14 '17 02:12 wfarner