aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlprofiler/main.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-05-18 17:43:25 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-05-21 12:54:40 +0000
commitbb085ff9272acd1ee8cb52d0c7b1e2d2a9116878 (patch)
tree2c0edfd8858faa9e485c57c28a0ae0dbc6ca932f /tools/qmlprofiler/main.cpp
parentfa785edbec74bd9201ed80c25ba582978c05a803 (diff)
qmlprofiler: Add some sanity to command line parsing.
Use QCommandLineParser to allow for double-dash options and improve the help text. Task-number: QTBUG-43066 Change-Id: Iac772cbbf750016a9058658c9b4b275faf8fb62f Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tools/qmlprofiler/main.cpp')
-rw-r--r--tools/qmlprofiler/main.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/qmlprofiler/main.cpp b/tools/qmlprofiler/main.cpp
index a1bd1b38b4..b16706c3a9 100644
--- a/tools/qmlprofiler/main.cpp
+++ b/tools/qmlprofiler/main.cpp
@@ -38,10 +38,7 @@ int main(int argc, char *argv[])
{
QmlProfilerApplication app(argc, argv);
- if (!app.parseArguments()) {
- app.printUsage();
- return 1;
- }
+ app.parseArguments();
CommandListener listener;
QObject::connect(&listener, SIGNAL(command(QString)), &app, SLOT(userCommand(QString)));
@@ -51,6 +48,5 @@ int main(int argc, char *argv[])
// wait for listener to exit
listener.wait();
-
return exitValue;
}