aboutsummaryrefslogtreecommitdiff
path: root/src/corelib/core/mcomponentdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/core/mcomponentdata.cpp')
-rw-r--r--src/corelib/core/mcomponentdata.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/core/mcomponentdata.cpp b/src/corelib/core/mcomponentdata.cpp
index abea65e5..7d890085 100644
--- a/src/corelib/core/mcomponentdata.cpp
+++ b/src/corelib/core/mcomponentdata.cpp
@@ -668,10 +668,7 @@ void MComponentDataPrivate::parseArguments(int &argc, char **argv,
<< "Compile time:" << __DATE__ << __TIME__ << "\n"
<< "QT verison :" << QT_VERSION_STR << "\n";
exit(EXIT_SUCCESS);
-
- } else if (s == "-prestart") {
- prestarted = true;
- } else if (s == "-h" || s.startsWith("-help") || s.startsWith("--help") || s.length() > 0) {
+ } else if (s == "-h" || s.startsWith("-help") || s.startsWith("--help")) {
mDebug("MComponentData") << "Usage: " << argv[0] << "\n"
<< " [-software] Enable software rendering\n"
<< " [-fullscreen] Make the application fullscreen\n"
@@ -701,6 +698,9 @@ void MComponentDataPrivate::parseArguments(int &argc, char **argv,
<< " This overrides keyboard state, as well as a device profile"
<< "\n";
exit(0);
+
+ } else if (s == "-prestart") {
+ prestarted = true;
} else {
usedArguments[i] = false;
}