Remove code duplicating work of KAboutData::setupCommandLine()

parent 98e83f8d
......@@ -48,8 +48,7 @@ int main(int argc, char **argv)
KAppTemplate appTemplate(0);
QCommandLineParser parser;
about.setupCommandLine(&parser);
parser.addVersionOption();
parser.addHelpOption();
parser.process(application);
about.processCommandLine(&parser);
......
......@@ -50,8 +50,6 @@ int main(int argc, char **argv)
application.setWindowIcon(QIcon::fromTheme(QStringLiteral("%{APPNAMELC}")));
QCommandLineParser parser;
parser.addHelpOption();
parser.addVersionOption();
aboutData.setupCommandLine(&parser);
parser.process(application);
......
......@@ -57,8 +57,6 @@ int main(int argc, char **argv)
application.setWindowIcon(QIcon::fromTheme(QStringLiteral("%{APPNAMELC}")));
QCommandLineParser parser;
parser.addHelpOption();
parser.addVersionOption();
aboutData.setupCommandLine(&parser);
parser.process(application);
......
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