mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 13:11:41 +00:00
Do not duplicate work of KAboutData::setupCommandLine()
This commit is contained in:
parent
853b711ff0
commit
1bc4fb0dd9
|
@ -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")));
|
||||
|
|
Loading…
Reference in a new issue