diff options
author | Jake Petroules <jake.petroules@petroules.com> | 2015-02-20 19:24:24 -0800 |
---|---|---|
committer | Jake Petroules <jake.petroules@petroules.com> | 2015-02-25 05:11:50 +0000 |
commit | c7e80fc10fe3a3e6624920972ccda40f1d89852c (patch) | |
tree | cbd1cb62f943ae8dc5816f1717a6b63f251159a3 /src/assistant/qhelpgenerator/main.cpp | |
parent | a3efc2727aa5d2b067d1556e94fb9b3ea23e74a6 (diff) |
Add an option to suppress status messages in qhelpgenerator.
Change-Id: Idfeda72a7936f9783a76f08faf2e0eb2543aedf1
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/assistant/qhelpgenerator/main.cpp')
-rw-r--r-- | src/assistant/qhelpgenerator/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/assistant/qhelpgenerator/main.cpp b/src/assistant/qhelpgenerator/main.cpp index 1c7b12953..62c584e5c 100644 --- a/src/assistant/qhelpgenerator/main.cpp +++ b/src/assistant/qhelpgenerator/main.cpp @@ -58,6 +58,7 @@ int main(int argc, char *argv[]) bool showHelp = false; bool showVersion = false; bool checkLinks = false; + bool silent = false; // don't require a window manager even though we're a QGuiApplication qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("minimal")); @@ -93,6 +94,8 @@ int main(int argc, char *argv[]) showHelp = true; } else if (arg == QLatin1String("-c")) { checkLinks = true; + } else if (arg == QLatin1String("-s")) { + silent = true; } else { QFileInfo fi(arg); projectFile = fi.absoluteFilePath(); @@ -117,6 +120,7 @@ int main(int argc, char *argv[]) " a default name will be used.\n" " -c Checks whether all links in HTML files\n" " point to files in this help project.\n" + " -s Suppresses status messages.\n" " -v Displays the version of \n" " qhelpgenerator.\n\n"); @@ -158,7 +162,7 @@ int main(int argc, char *argv[]) return -1; } - HelpGenerator generator; + HelpGenerator generator(silent); bool success = true; if (checkLinks) success = generator.checkLinks(*helpData); |