Don't repeat work of KAboutData::setupCommandLine().

This commit is contained in:
Andrius Štikonas 2017-10-11 00:20:03 +01:00
parent f105f448b3
commit b7fdd6e4c4
1 changed files with 0 additions and 3 deletions

View File

@ -67,9 +67,6 @@ int Q_DECL_IMPORT main(int argc, char* argv[])
KCrash::initialize();
QCommandLineParser parser;
parser.setApplicationDescription(aboutData.shortDescription());
parser.addHelpOption();
parser.addVersionOption();
aboutData.setupCommandLine(&parser);
parser.addOption(QCommandLineOption(QLatin1Literal("dontsu"), xi18nc("@info:shell", "Do not try to gain super user privileges")));
parser.addOption(QCommandLineOption(QLatin1Literal("advconfig"), xi18nc("@info:shell", "Show advanced tab in configuration dialog")));