Fixed a bug which would make the "-f" flag to be ignored.

This commit is contained in:
filipesoliveira 2020-08-06 10:51:23 +01:00
parent 25d1d61685
commit 80d279a70e

View File

@ -33,7 +33,8 @@ public class CordaCaplet extends Capsule {
private Config parseConfigFile(List<String> args) {
this.baseDir = getBaseDirectory(args);
String config = getOption(args, "--config-file");
String config = getOptionMultiple(args, Arrays.asList("--config-file", "-f"));
File configFile = (config == null) ? new File(baseDir, "node.conf") : new File(config);
try {
ConfigParseOptions parseOptions = ConfigParseOptions.defaults().setAllowMissing(false);