Do not repeat work of KAboutData::setupCommandLine()

parent 87fb7129
...@@ -92,8 +92,6 @@ int main( int argc, char **argv ) ...@@ -92,8 +92,6 @@ int main( int argc, char **argv )
QCommandLineParser parser; QCommandLineParser parser;
aboutData.setupCommandLine(&parser); aboutData.setupCommandLine(&parser);
parser.addVersionOption();
parser.addHelpOption();
parser.addPositionalArgument(QLatin1String("part"), i18n("Name of the part to load, e.g. dolphinpart")); parser.addPositionalArgument(QLatin1String("part"), i18n("Name of the part to load, e.g. dolphinpart"));
parser.process(app); parser.process(app);
......
...@@ -49,8 +49,6 @@ int main(int argc, char** argv) ...@@ -49,8 +49,6 @@ int main(int argc, char** argv)
KAboutData::setApplicationData(about); KAboutData::setApplicationData(about);
QCommandLineParser parser; QCommandLineParser parser;
parser.addVersionOption();
parser.addHelpOption();
about.setupCommandLine(&parser); about.setupCommandLine(&parser);
parser.addPositionalArgument(QLatin1String("[URL]"), i18n("Document to open")); parser.addPositionalArgument(QLatin1String("[URL]"), i18n("Document to open"));
......
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