From 80d279a70e520d34b3b2665949e4e26ada578dac Mon Sep 17 00:00:00 2001 From: filipesoliveira Date: Thu, 6 Aug 2020 10:51:23 +0100 Subject: [PATCH] Fixed a bug which would make the "-f" flag to be ignored. --- node/capsule/src/main/java/CordaCaplet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/capsule/src/main/java/CordaCaplet.java b/node/capsule/src/main/java/CordaCaplet.java index 7633ba0a77..be7529a113 100644 --- a/node/capsule/src/main/java/CordaCaplet.java +++ b/node/capsule/src/main/java/CordaCaplet.java @@ -33,7 +33,8 @@ public class CordaCaplet extends Capsule { private Config parseConfigFile(List 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);