Remove equal sign from edit command

This commit is contained in:
Eric 2020-03-21 22:19:09 +01:00
parent ae78d62779
commit 4e1b144329

View File

@ -132,10 +132,6 @@ public class EditSubCommand extends SubCommand {
List<String> ret = new ArrayList<>(); List<String> ret = new ArrayList<>();
if (!isItemSet) {
ITEM_ARGS.stream().filter(arg -> arg.startsWith(lastArg)).findFirst().ifPresent(ret::add);
}
if (!isAmountSet) { if (!isAmountSet) {
AMOUNT_ARGS.stream().filter(arg -> arg.startsWith(lastArg)).findFirst().ifPresent(ret::add); AMOUNT_ARGS.stream().filter(arg -> arg.startsWith(lastArg)).findFirst().ifPresent(ret::add);
} }
@ -151,6 +147,10 @@ public class EditSubCommand extends SubCommand {
// Add equals signs // Add equals signs
ret.replaceAll(arg -> arg + "="); ret.replaceAll(arg -> arg + "=");
if (!isItemSet) {
ITEM_ARGS.stream().filter(arg -> arg.startsWith(lastArg)).findFirst().ifPresent(ret::add);
}
return ret; return ret;
} }
} }