Changeset View
Changeset View
Standalone View
Standalone View
shell/main.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 48 | // This variable should possibly be removed when all are fixed | |||
---|---|---|---|---|---|
71 | 71 | | |||
72 | { | 72 | { | ||
73 | QCommandLineParser cliOptions; | 73 | QCommandLineParser cliOptions; | ||
74 | 74 | | |||
75 | QCommandLineOption dbgOption(QStringList() << QStringLiteral("d") << | 75 | QCommandLineOption dbgOption(QStringList() << QStringLiteral("d") << | ||
76 | QStringLiteral("qmljsdebugger"), | 76 | QStringLiteral("qmljsdebugger"), | ||
77 | i18n("Enable QML Javascript debugger")); | 77 | i18n("Enable QML Javascript debugger")); | ||
78 | 78 | | |||
79 | QCommandLineOption winOption(QStringList() << QStringLiteral("w") << | | |||
80 | QStringLiteral("windowed"), | | |||
81 | i18n("Force a windowed view for testing purposes")); | | |||
82 | | ||||
83 | QCommandLineOption noRespawnOption(QStringList() << QStringLiteral("n") << | 79 | QCommandLineOption noRespawnOption(QStringList() << QStringLiteral("n") << | ||
84 | QStringLiteral("no-respawn"), | 80 | QStringLiteral("no-respawn"), | ||
85 | i18n("Do not restart plasma-shell automatically after a crash")); | 81 | i18n("Do not restart plasma-shell automatically after a crash")); | ||
86 | 82 | | |||
87 | QCommandLineOption shutupOption(QStringList() << QStringLiteral("s") << QStringLiteral("shut-up"), | | |||
88 | i18n("Deprecated, does nothing")); | | |||
89 | | ||||
90 | QCommandLineOption shellPluginOption(QStringList() << QStringLiteral("p") << QStringLiteral("shell-plugin"), | 83 | QCommandLineOption shellPluginOption(QStringList() << QStringLiteral("p") << QStringLiteral("shell-plugin"), | ||
91 | i18n("Force loading the given shell plugin"), | 84 | i18n("Force loading the given shell plugin"), | ||
92 | QStringLiteral("plugin")); | 85 | QStringLiteral("plugin")); | ||
93 | 86 | | |||
94 | QCommandLineOption standaloneOption(QStringList() << QStringLiteral("a") << QStringLiteral("standalone"), | 87 | QCommandLineOption standaloneOption(QStringList() << QStringLiteral("a") << QStringLiteral("standalone"), | ||
95 | i18n("Load plasmashell as a standalone application, needs the shell-plugin option to be specified")); | 88 | i18n("Load plasmashell as a standalone application, needs the shell-plugin option to be specified")); | ||
96 | 89 | | |||
97 | 90 | | |||
98 | QCommandLineOption testOption(QStringList() << QStringLiteral("test"), | 91 | QCommandLineOption testOption(QStringList() << QStringLiteral("test"), | ||
99 | i18n("Enables test mode and specifies the layout javascript file to set up the testing environment"), i18n("file"), QStringLiteral("layout.js")); | 92 | i18n("Enables test mode and specifies the layout javascript file to set up the testing environment"), i18n("file"), QStringLiteral("layout.js")); | ||
100 | 93 | | |||
101 | cliOptions.addOption(dbgOption); | 94 | cliOptions.addOption(dbgOption); | ||
102 | cliOptions.addOption(winOption); | | |||
103 | cliOptions.addOption(noRespawnOption); | 95 | cliOptions.addOption(noRespawnOption); | ||
104 | cliOptions.addOption(shutupOption); | | |||
105 | cliOptions.addOption(shellPluginOption); | 96 | cliOptions.addOption(shellPluginOption); | ||
106 | cliOptions.addOption(standaloneOption); | 97 | cliOptions.addOption(standaloneOption); | ||
107 | cliOptions.addOption(testOption); | 98 | cliOptions.addOption(testOption); | ||
108 | 99 | | |||
109 | aboutData.setupCommandLine(&cliOptions); | 100 | aboutData.setupCommandLine(&cliOptions); | ||
110 | cliOptions.process(app); | 101 | cliOptions.process(app); | ||
111 | aboutData.processCommandLine(&cliOptions); | 102 | aboutData.processCommandLine(&cliOptions); | ||
112 | 103 | | |||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |