mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
fix scenario parsing bug when named arg contains assignments
This commit is contained in:
parent
725158ac11
commit
73464c43c4
@ -75,7 +75,7 @@ public class NBCLIScenarioParser {
|
||||
while (arglist.size() > 0
|
||||
&& arglist.peekFirst().contains("=")
|
||||
&& !arglist.peekFirst().startsWith("-")) {
|
||||
String[] arg = arglist.removeFirst().split("=");
|
||||
String[] arg = arglist.removeFirst().split("=",2);
|
||||
arg[0] = Synonyms.canonicalize(arg[0], logger);
|
||||
if (userParams.containsKey(arg[0])) {
|
||||
throw new BasicError("duplicate occurrence of option on command line: " + arg[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user