refactor: Clean up includeconf comments
Suggested by Antoine Riard <ariard@student.42.fr> https://github.com/bitcoin/bitcoin/pull/15934#discussion_r344291875 and John Newbery <john@johnnewbery.com> https://github.com/bitcoin/bitcoin/pull/15934#discussion_r344271224 This commit does not change behavior.
This commit is contained in:
1 parent
3f7dc9b808
commit
57e8b7a727
1 file changed
+2
-2
+2
-2
@@ -344,7 +344,7 @@ bool ArgsManager::ParseParameters(int argc, const char* const argv[], std::strin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// we do not allow -includeconf from command line, so we clear it here
|
// we do not allow -includeconf from command line
|
||||||
bool success = true;
|
bool success = true;
|
||||||
if (auto* includes = util::FindKey(m_settings.command_line_options, "includeconf")) {
|
if (auto* includes = util::FindKey(m_settings.command_line_options, "includeconf")) {
|
||||||
for (const auto& include : util::SettingsSpan(*includes)) {
|
for (const auto& include : util::SettingsSpan(*includes)) {
|
||||||
@@ -780,7 +780,7 @@ bool ArgsManager::ReadConfigFiles(std::string& error, bool ignore_invalid_keys)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// `-includeconf` cannot be included in the command line arguments except
|
// `-includeconf` cannot be included in the command line arguments except
|
||||||
// as `-noincludeconf` (which indicates that no conf file should be used).
|
// as `-noincludeconf` (which indicates that no included conf file should be used).
|
||||||
bool use_conf_file{true};
|
bool use_conf_file{true};
|
||||||
{
|
{
|
||||||
LOCK(cs_args);
|
LOCK(cs_args);
|
||||||
|
|||||||
Reference in new issue
Block a user