mirror of
https://github.com/corda/corda.git
synced 2025-01-30 16:14:39 +00:00
Fixed a bug which would make the "-f" flag to be ignored.
This commit is contained in:
parent
25d1d61685
commit
80d279a70e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user