refactor: 大规模架构重构

This commit is contained in:
Chenx Dust
2026-07-28 13:13:28 +08:00
parent edd27f29ff
commit ee8199166a
102 changed files with 3443 additions and 1609 deletions

View File

@@ -0,0 +1,19 @@
#include "commandlineoptions.h"
QString CommandLineOptions::value(const QStringList &arguments, const QString &key)
{
const QString prefix = key + "=";
for (int index = 0; index < arguments.size(); ++index)
{
const QString &argument = arguments.at(index);
if (argument == key)
{
return index + 1 < arguments.size() ? arguments.at(index + 1) : QString();
}
if (argument.startsWith(prefix))
{
return argument.mid(prefix.size());
}
}
return {};
}