Commit f8eeac8e authored by Laurent Montel's avatar Laurent Montel 😁

Do not duplicate work of KAboutData::setupCommandLine()

parent 5e6b10cd
...@@ -184,8 +184,6 @@ int main(int argc, char **argv) ...@@ -184,8 +184,6 @@ int main(int argc, char **argv)
*/ */
QCommandLineParser parser; QCommandLineParser parser;
aboutData.setupCommandLine(&parser); aboutData.setupCommandLine(&parser);
parser.addHelpOption();
parser.addVersionOption();
// -s/--start session option // -s/--start session option
const QCommandLineOption startSessionOption(QStringList() << QStringLiteral("s") << QStringLiteral("start"), i18n("Start Kate with a given session."), i18n("session")); const QCommandLineOption startSessionOption(QStringList() << QStringLiteral("s") << QStringLiteral("start"), i18n("Start Kate with a given session."), i18n("session"));
......
...@@ -159,8 +159,6 @@ extern "C" Q_DECL_EXPORT int main(int argc, char **argv) ...@@ -159,8 +159,6 @@ extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
*/ */
QCommandLineParser parser; QCommandLineParser parser;
aboutData.setupCommandLine(&parser); aboutData.setupCommandLine(&parser);
parser.addHelpOption();
parser.addVersionOption();
// -e/--encoding option // -e/--encoding option
const QCommandLineOption useEncoding(QStringList() << QStringLiteral("e") << QStringLiteral("encoding"), i18n("Set encoding for the file to open."), i18n("encoding")); const QCommandLineOption useEncoding(QStringList() << QStringLiteral("e") << QStringLiteral("encoding"), i18n("Set encoding for the file to open."), i18n("encoding"));
......
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