summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-11 09:08:29 +0200
committerMontel Laurent <[email protected]>2017-10-11 09:08:29 +0200
commitad189f37191162f7fcf2d5af29f8db978e1e56bb (patch)
tree6d36b0cc02c0148a128be03d3b8988fb8fc635f6
parentd0e21cae92fdf7ab554d44efae70f570f8b47ab3 (diff)
Don't repeat work of KAboutData::setupCommandLine().
-rw-r--r--console/main.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/console/main.cpp b/console/main.cpp
index dca6c61..ee90a43 100644
--- a/console/main.cpp
+++ b/console/main.cpp
@@ -38,8 +38,6 @@ int main(int argc, char *argv[])
QStringLiteral(PIMSETTINGEXPORTER_VERSION), i18n("PIM Setting Exporter Console"), KAboutLicense::GPL_V2,
i18n("Copyright © 2015-2017 pimsettingexporter authors"));
aboutData.addAuthor(i18n("Laurent Montel"), i18n("Maintainer"), QStringLiteral("[email protected]"));
- parser.addVersionOption();
- parser.addHelpOption();
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("logfile"), i18n("File to log information to."), QStringLiteral("file")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("template"), i18n("Template file to define what data, settings to import or export."), QStringLiteral("file")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("import"), i18n("Import the given file."), QStringLiteral("file")));