Browse Source

Unit/Amount

development
Jens 6 months ago
parent
commit
26f6e4b7c7
  1. 4
      ShoppingList/src/com/jens/rhasspy/shoppinglist/Start.java

4
ShoppingList/src/com/jens/rhasspy/shoppinglist/Start.java

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

Loading…
Cancel
Save