diff --git a/node/capsule/src/main/java/CordaCaplet.java b/node/capsule/src/main/java/CordaCaplet.java index be7529a113..a2c73e0dd3 100644 --- a/node/capsule/src/main/java/CordaCaplet.java +++ b/node/capsule/src/main/java/CordaCaplet.java @@ -33,9 +33,8 @@ public class CordaCaplet extends Capsule { private Config parseConfigFile(List args) { this.baseDir = getBaseDirectory(args); - String config = getOptionMultiple(args, Arrays.asList("--config-file", "-f")); - File configFile = (config == null) ? new File(baseDir, "node.conf") : new File(config); + File configFile = getConfigFile(args, baseDir); try { ConfigParseOptions parseOptions = ConfigParseOptions.defaults().setAllowMissing(false); Config defaultConfig = ConfigFactory.parseResources("corda-reference.conf", parseOptions);