It alreadys added by kaboutdata

This commit is contained in:
Laurent Montel 2020-01-12 14:46:21 +01:00
parent c54104b24f
commit 0f707cc709
3 changed files with 0 additions and 5 deletions

View file

@ -37,8 +37,6 @@ int main(int argc, char* argv[])
{ {
QCommandLineParser parser; QCommandLineParser parser;
aboutData.setupCommandLine(&parser); aboutData.setupCommandLine(&parser);
parser.addVersionOption();
parser.addHelpOption();
parser.process(app); parser.process(app);
aboutData.processCommandLine(&parser); aboutData.processCommandLine(&parser);
} }

View file

@ -51,8 +51,6 @@ int main(int argc, char *argv[])
{ {
QCommandLineParser parser; QCommandLineParser parser;
aboutData.setupCommandLine(&parser); aboutData.setupCommandLine(&parser);
parser.addVersionOption();
parser.addHelpOption();
parser.addOption(QCommandLineOption(QStringLiteral("device"), i18n("Select a device"), i18n("id"))); parser.addOption(QCommandLineOption(QStringLiteral("device"), i18n("Select a device"), i18n("id")));
parser.addOption(QCommandLineOption(QStringLiteral("message"), i18n("Send a message"), i18n("message"))); parser.addOption(QCommandLineOption(QStringLiteral("message"), i18n("Send a message"), i18n("message")));
parser.process(app); parser.process(app);

View file

@ -61,7 +61,6 @@ int main(int argc, char** argv)
QCommandLineParser parser; QCommandLineParser parser;
parser.addPositionalArgument(QStringLiteral("url"), i18n("URL to share")); parser.addPositionalArgument(QStringLiteral("url"), i18n("URL to share"));
parser.addOption(QCommandLineOption(QStringLiteral("open"), QStringLiteral("Open the file on the remote device"))); parser.addOption(QCommandLineOption(QStringLiteral("open"), QStringLiteral("Open the file on the remote device")));
parser.addHelpOption();
about.setupCommandLine(&parser); about.setupCommandLine(&parser);
parser.process(app); parser.process(app);
about.processCommandLine(&parser); about.processCommandLine(&parser);