Skip to content

Commit

Permalink
Merge pull request #445 from pinguet62/args-single
Browse files Browse the repository at this point in the history
fix(args): allow argument key without value
  • Loading branch information
michaelmosmann committed Jan 19, 2023
2 parents 99bc0ca + aa9aa96 commit f491310
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ private static List<String> getCommandLine(
builder.add(/*executable.toAbsolutePath().toString(),*/ "--dbpath", dbDirectory.toAbsolutePath().toString());

config.params().forEach((key, val) -> builder.add("--setParameter", format("%s=%s", key, val)));
config.args().forEach(builder::add);
config.args().forEach((key, val) -> {
builder.add(key);
if (!val.isEmpty()) {
builder.add(val);
}
});

if (config.auth()) {
LOGGER.info(
Expand Down

0 comments on commit f491310

Please sign in to comment.