support for equals in global options

This commit is contained in:
Jonathan Shook
2020-04-06 03:05:05 -05:00
parent 0941849b57
commit 3837c66050

View File

@@ -130,6 +130,13 @@ public class NBCLIOptions {
while (arglist.peekFirst() != null) {
String word = arglist.peekFirst();
if (word.startsWith("--") && word.contains("=")) {
String wordToSplit = arglist.removeFirst();
String[] split = wordToSplit.split("=", 2);
arglist.offerFirst(split[1]);
arglist.offerFirst(split[0]);
continue;
}
switch (word) {
case SHOW_SCRIPT:
arglist.removeFirst();