@@ -346,7 +346,7 @@ protected void handleConcatenatedOptions(final String token) throws ParseExcepti
346346
347347 if (currentOption != null && token .length () != i + 1 ) {
348348 // add the trail as an argument of the option
349- currentOption .addValueForProcessing (stripLeadingAndTrailingQuotesDefaultOff (token .substring (i + 1 )));
349+ currentOption .processValue (stripLeadingAndTrailingQuotesDefaultOff (token .substring (i + 1 )));
350350 break ;
351351 }
352352 }
@@ -388,7 +388,7 @@ private void handleLongOptionWithEqual(final String token) throws ParseException
388388 final Option option = options .getOption (key );
389389 if (option .acceptsArg ()) {
390390 handleOption (option );
391- currentOption .addValueForProcessing (stripLeadingAndTrailingQuotesDefaultOff (value ));
391+ currentOption .processValue (stripLeadingAndTrailingQuotesDefaultOff (value ));
392392 currentOption = null ;
393393 } else {
394394 handleUnknownToken (currentToken );
@@ -448,7 +448,7 @@ private void handleProperties(final Properties properties) throws ParseException
448448
449449 if (opt .hasArg ()) {
450450 if (opt .getValues () == null || opt .getValues ().length == 0 ) {
451- opt .addValueForProcessing (stripLeadingAndTrailingQuotesDefaultOff (value ));
451+ opt .processValue (stripLeadingAndTrailingQuotesDefaultOff (value ));
452452 }
453453 } else if (!("yes" .equalsIgnoreCase (value ) || "true" .equalsIgnoreCase (value ) || "1" .equalsIgnoreCase (value ))) {
454454 // if the value is not yes, true or 1 then don't add the option to the CommandLine
@@ -492,12 +492,12 @@ private void handleShortAndLongOption(final String token) throws ParseException
492492
493493 if (opt != null && options .getOption (opt ).acceptsArg ()) {
494494 handleOption (options .getOption (opt ));
495- currentOption .addValueForProcessing (stripLeadingAndTrailingQuotesDefaultOff (t .substring (opt .length ())));
495+ currentOption .processValue (stripLeadingAndTrailingQuotesDefaultOff (t .substring (opt .length ())));
496496 currentOption = null ;
497497 } else if (isJavaProperty (t )) {
498498 // -SV1 (-Dflag)
499499 handleOption (options .getOption (t .substring (0 , 1 )));
500- currentOption .addValueForProcessing (stripLeadingAndTrailingQuotesDefaultOff (t .substring (1 )));
500+ currentOption .processValue (stripLeadingAndTrailingQuotesDefaultOff (t .substring (1 )));
501501 currentOption = null ;
502502 } else {
503503 // -S1S2S3 or -S1S2V
@@ -514,16 +514,16 @@ private void handleShortAndLongOption(final String token) throws ParseException
514514 final Option option = options .getOption (opt );
515515 if (option != null && option .acceptsArg ()) {
516516 handleOption (option );
517- currentOption .addValueForProcessing (value );
517+ currentOption .processValue (value );
518518 currentOption = null ;
519519 } else {
520520 handleUnknownToken (token );
521521 }
522522 } else if (isJavaProperty (opt )) {
523523 // -SV1=V2 (-Dkey=value)
524524 handleOption (options .getOption (opt .substring (0 , 1 )));
525- currentOption .addValueForProcessing (opt .substring (1 ));
526- currentOption .addValueForProcessing (value );
525+ currentOption .processValue (opt .substring (1 ));
526+ currentOption .processValue (value );
527527 currentOption = null ;
528528 } else {
529529 // -L=V or -l=V
@@ -545,7 +545,7 @@ private void handleToken(final String token) throws ParseException {
545545 } else if ("--" .equals (token )) {
546546 skipParsing = true ;
547547 } else if (currentOption != null && currentOption .acceptsArg () && isArgument (token )) {
548- currentOption .addValueForProcessing (stripLeadingAndTrailingQuotesDefaultOn (token ));
548+ currentOption .processValue (stripLeadingAndTrailingQuotesDefaultOn (token ));
549549 } else if (token .startsWith ("--" )) {
550550 handleLongOption (token );
551551 } else if (token .startsWith ("-" ) && !"-" .equals (token )) {
0 commit comments