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

parent c6e3179f
......@@ -554,15 +554,12 @@ extern "C" Q_DECL_EXPORT int kdemain( int argc, char** argv )
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("utilities-system-monitor")));
QCommandLineParser parser;
parser.addVersionOption();
parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.addPositionalArgument(QStringLiteral("[worksheet]"), i18n( "Optional worksheet files to load" ));
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
KSGRD::SensorMgr = new KSGRD::SensorManager();
KSGRD::Style = new KSGRD::StyleEngine();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment