From 24d5290133ea593a6e65693ef6154886871739a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Fri, 30 Sep 2022 08:59:09 +0200 Subject: [PATCH] syncqt: Fix -help option Skip sanity checks if a -help option is detected. Otherwise, syncqt bails out with e.g. You need to specify either -headers or -all option. Change-Id: I49eee48cd1825244cb6d04152734cb0dfa03fc5f Reviewed-by: Alexey Edelev --- src/tools/syncqt/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/syncqt/main.cpp b/src/tools/syncqt/main.cpp index 8a1692e5d4a..05e2e395290 100644 --- a/src/tools/syncqt/main.cpp +++ b/src/tools/syncqt/main.cpp @@ -348,6 +348,9 @@ private: } } + if (m_printHelpOnly) + return true; + if (!qpaHeadersFilter.empty()) m_qpaHeadersRegex = std::regex(qpaHeadersFilter);