cbeust / jcommander

Command line parsing framework for Java
Apache License 2.0
1.96k stars 334 forks source link

fixed Parameter does not display {},[],: correctly #514

Open Asriter opened 3 years ago

Asriter commented 3 years ago

In fact, the bug is not caused by the input of these symbols in the argument, but by the "splitter" call that splits the String according to ", ". so the input JSON will be split. I added a method "JSONCheck" in CommParameterSplitter to determine if the parameter is JSON, and if it is, it will not be split according to ",". fixed #431

mkarg commented 1 year ago

@Asriter Can you please rebase on master and provide a test? Thanks! :-)

mkarg commented 1 year ago

Note that comma-separation still must be possible, so the correct solution needs to be able to separate several JSON values by comma.

mkarg commented 3 months ago

@Asriter Kindly requesting our response! :-)