Commit 42b4e57f authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.Qml2Puppet: crash fix

If if have less then one argument show some help end exit.
The code afterwards assumes that we have at least one argument.

Change-Id: I555e02dc03c2319eef713b880cf43d740d64e942
Reviewed-by: default avatarMarco Bubke <>
parent 8828a2fa
......@@ -61,6 +61,13 @@ int main(int argc, char *argv[])
if (application.arguments().count() < 2) {
qDebug() << "Usage:\n";
qDebug() << "--test";
qDebug() << "--version";
return -1;
if (application.arguments().count() == 2 && application.arguments().at(1) == "--test") {
qDebug() << QCoreApplication::applicationVersion();
QQmlEngine engine;
Supports Markdown
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