Commit be7bfa81 authored by Luigi Toscano's avatar Luigi Toscano

Porting error: fix the command line options

Both games and the positional argument (which lead to the same effect,
but that's not the point) were handled in the same way, and both
incorrectly (all the values were used as switch options, instead
of (switch) name, description, valueName, etc.
parent 9633c766
......@@ -68,8 +68,8 @@ int main(int argc, char *argv[])
KCrash::initialize();
parser.addVersionOption();
parser.addHelpOption();
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("game") << i18nc("@info:shell", "Game to load (SGF file)") ) );
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("+[Url]") << i18nc("@info:shell", "Game to load (SGF file)") ) );
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("game"), i18nc("@info:shell", "Game to load (SGF file)"), i18nc("@info:shell", "gamefile")));
parser.addPositionalArgument(i18nc("@info:shell", "gamefile"), i18nc("@info:shell", "Game to load (SGF file)"));
aboutData.setupCommandLine(&parser);
parser.process(app);
......
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