Unit/Amount

This commit is contained in:
Jens 2021-04-27 23:28:08 +02:00
parent 6ce0f76483
commit 26f6e4b7c7

View File

@ -31,9 +31,9 @@ public class Start
// System.out.println("Found double dash with command " + argstring.substring(2, len) ); // System.out.println("Found double dash with command " + argstring.substring(2, len) );
String argName = argstring.substring(2, len); String argName = argstring.substring(2, len);
doubleOptsList.add(argName); doubleOptsList.add(argName);
if(argName.equalsIgnoreCase("amount")) if(argName.equalsIgnoreCase("shoppingAmount"))
amount = Float.parseFloat(args[i+1].replace("\"", "")); amount = Float.parseFloat(args[i+1].replace("\"", ""));
else if(argName.equalsIgnoreCase("unitName")) else if(argName.equalsIgnoreCase("shoppingUnit"))
unitName = args[i+1].replace("\"", ""); unitName = args[i+1].replace("\"", "");
else if(argName.equalsIgnoreCase("shoppingProduct")) else if(argName.equalsIgnoreCase("shoppingProduct"))
productName = args[i+1].replace("\"", ""); productName = args[i+1].replace("\"", "");