diff --git a/src/shell/main.cpp b/src/shell/main.cpp index e2c44e4c1..b5de69041 100644 --- a/src/shell/main.cpp +++ b/src/shell/main.cpp @@ -27,6 +27,7 @@ static const char description[] = "Plasma Shell"; static const char version[] = "2.0"; +static QCommandLineParser parser; int main(int argc, char** argv) { @@ -37,7 +38,6 @@ int main(int argc, char** argv) QCommandLineOption dbg = QCommandLineOption(QStringList() << QStringLiteral("d") << QStringLiteral("qmljsdebugger"), QStringLiteral("Enable QML Javascript debugger")); - QCommandLineParser parser; parser.addVersionOption(); parser.addHelpOption(description); parser.addOption(dbg);