1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00

Fix some of the command line arguments

This commit is contained in:
Joshua Goins 2023-12-23 10:19:25 -05:00
parent ce81590246
commit b747f99131

View file

@ -68,18 +68,17 @@ int main(int argc, char *argv[])
KAboutData::setApplicationData(about);
QCommandLineParser parser;
parser.setApplicationDescription(i18n("Linux FFXIV Launcher"));
about.setupCommandLine(&parser);
QCommandLineOption steamOption(QStringLiteral("steam"), QStringLiteral("Used for booting the launcher from Steam."), QStringLiteral("verb"));
steamOption.setFlags(QCommandLineOption::HiddenFromHelp);
parser.addOption(steamOption);
about.setupCommandLine(&parser);
parser.parse(QCoreApplication::arguments());
about.processCommandLine(&parser);
// We must handle these manually, since we use parse() and not process()
if (parser.isSet(QStringLiteral("help"))) {
if (parser.isSet(QStringLiteral("help")) || parser.isSet(QStringLiteral("help-all"))) {
parser.showHelp();
}