Do not duplicate work of KAboutData::setupCommandLine()

remotes/origin/Applications/18.08
Laurent Montel 8 years ago
parent 853b711ff0
commit 1bc4fb0dd9
  1. 2
      shell/main.cpp

@ -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…
Cancel
Save