util, refactor: Use GetPathArg to read "-conf" value

Also "includeconf" values been normalized.
This commit is contained in:
Hennadii Stepanov
2022-03-25 21:36:22 +01:00
parent 1c6fcea205
commit 1276090705
5 changed files with 11 additions and 11 deletions

View File

@@ -137,7 +137,7 @@ bool StartLogging(const ArgsManager& args)
LogPrintf("Using data directory %s\n", fs::PathToString(gArgs.GetDataDirNet()));
// Only log conf file usage message if conf file actually exists.
fs::path config_file_path = GetConfigFile(args.GetArg("-conf", BITCOIN_CONF_FILENAME));
fs::path config_file_path = GetConfigFile(args.GetPathArg("-conf", BITCOIN_CONF_FILENAME));
if (fs::exists(config_file_path)) {
LogPrintf("Config file: %s\n", fs::PathToString(config_file_path));
} else if (args.IsArgSet("-conf")) {