[DEBUG] correct option parsing

This commit is contained in:
Edouard DUPIN 2021-06-29 22:09:03 +02:00
parent 08bf01ae27
commit 1be1359bb6

View File

@ -100,7 +100,10 @@ public class Arguments {
String[] optionList = argument.split("=");
Log.verbose("ListArgument = " + optionList);
String option = optionList[0];
String optionParam = argument.substring(option.length()+1);
String optionParam = "";
if (argument.length() > option.length()+1) {
optionParam = argument.substring(option.length()+1);
}
Log.verbose(" option= " + option);
Log.verbose(" optionParam= " + optionParam);
boolean argumentFound=false;