flag is now possible at same place as mode

This commit is contained in:
Syping 2018-02-21 12:18:23 +01:00
parent c17971dda4
commit 1d7186757b
1 changed files with 12 additions and 0 deletions

View File

@ -116,6 +116,18 @@ int main(int argc, char *argv[])
convertToGTA = false;
formatSwitch = true;
}
else
{
QStringList currentFlagArg = args.at(4).split("=");
QString currentFlag = currentFlagArg.at(0).toLower();
if (currentFlag.left(1) == "-")
{
currentFlag.remove(0, 1);
currentFlagArg.removeAt(0);
QString currentValue = currentFlagArg.join(QString());
flags[currentFlag] = currentValue;
}
}
}
if (args.length() >= 6)
{