Commit c2c4b89b authored by Kersten Schuster's avatar Kersten Schuster

Made pluginoption parsing a little bit more robust.

parent 24920cf0
......@@ -466,6 +466,11 @@ CommandLineParseResult parseCommandLine(QCommandLineParser &parser, QString *err
for(auto s : poptions)
{
auto kvp = s.split("=");
// Only consider terms of the kind "key=value"
if(kvp.size() != 2u)
continue;
auto key = kvp[0];
auto value = kvp[1];
pcloptions.push_back({key, value});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment