Fix crash when parsing command line with -noincludeconf=0

This commit is contained in:
MarcoFalke
2021-05-21 10:52:46 +02:00
parent eb4df9a628
commit fa9f711c37
2 changed files with 9 additions and 2 deletions

View File

@@ -369,7 +369,7 @@ bool ArgsManager::ParseParameters(int argc, const char* const argv[], std::strin
bool success = true;
if (auto* includes = util::FindKey(m_settings.command_line_options, "includeconf")) {
for (const auto& include : util::SettingsSpan(*includes)) {
error += "-includeconf cannot be used from commandline; -includeconf=" + include.get_str() + "\n";
error += "-includeconf cannot be used from commandline; -includeconf=" + include.write() + "\n";
success = false;
}
}