aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/qmlcachegen/qmlcachegen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/qmlcachegen/qmlcachegen.cpp b/tools/qmlcachegen/qmlcachegen.cpp
index 10d9829520..977c5b6ff1 100644
--- a/tools/qmlcachegen/qmlcachegen.cpp
+++ b/tools/qmlcachegen/qmlcachegen.cpp
@@ -276,7 +276,9 @@ int main(int argc, char **argv)
parser.process(app);
const QStringList sources = parser.positionalArguments();
- if (sources.count() > 1) {
+ if (sources.isEmpty()){
+ parser.showHelp();
+ } else if (sources.count() > 1) {
fprintf(stderr, "%s\n", qPrintable(QStringLiteral("Too many input files specified: '") + sources.join(QStringLiteral("' '")) + QLatin1Char('\'')));
return EXIT_FAILURE;
}