Don't repeat work of KAboutData::setupCommandLine().
This commit is contained in:
parent
f105f448b3
commit
b7fdd6e4c4
|
@ -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")));
|
||||
|
|
Loading…
Reference in New Issue