jcommander
jcommander copied to clipboard
Return an empty list when parsing an empty string
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.