mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
support for equals in global options
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user