Warn on unknown rw_settings

This commit is contained in:
MarcoFalke 2020-07-30 10:50:54 +02:00
parent 862fde88be
commit fa48405ef8
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
2 changed files with 17 additions and 3 deletions

View file

@ -426,6 +426,14 @@ bool ArgsManager::ReadSettingsFile(std::vector<std::string>* errors)
SaveErrors(read_errors, errors);
return false;
}
for (const auto& setting : m_settings.rw_settings) {
std::string section;
std::string key = setting.first;
(void)InterpretOption(section, key, /* value */ {}); // Split setting key into section and argname
if (!GetArgFlags('-' + key)) {
LogPrintf("Ignoring unknown rw_settings value %s\n", setting.first);
}
}
return true;
}