Do not duplicate work of KAboutData::setupCommandLine()

This commit is contained in:
Laurent Montel 2018-06-21 13:39:36 +02:00
parent 853b711ff0
commit 1bc4fb0dd9

View file

@ -45,8 +45,6 @@ int main(int argc, char** argv)
QCommandLineParser parser;
// The KDE4 version accepted flags such as -unique with a single dash -> preserve compatibility
parser.setSingleDashWordOptionMode(QCommandLineParser::ParseAsLongOptions);
parser.addVersionOption();
parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("p") << QStringLiteral("page"), i18n("Page of the document to be shown"), QStringLiteral("number")));