Commit 61734f78 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add command line support

parent de8870b0
......@@ -27,6 +27,8 @@
#include <KCrash>
#include <KLocalizedString>
#include <QCommandLineParser>
int main(int argc, char **argv)
{
Application app(argc, argv);
......@@ -56,6 +58,10 @@ int main(int argc, char **argv)
aboutData.setTranslator(i18nc("NAME OF TRANSLATORS", "Your names"), i18nc("EMAIL OF TRANSLATORS", "Your emails"));
KAboutData::setApplicationData(aboutData);
QCommandLineParser parser;
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
KCrash::initialize();
new MainWindow();
......
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