summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qcommandlineparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
-rw-r--r--src/corelib/tools/qcommandlineparser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/tools/qcommandlineparser.cpp b/src/corelib/tools/qcommandlineparser.cpp
index 2880eedf77a..863cf0ca6ce 100644
--- a/src/corelib/tools/qcommandlineparser.cpp
+++ b/src/corelib/tools/qcommandlineparser.cpp
@@ -196,7 +196,8 @@ QStringList QCommandLineParserPrivate::aliases(const QString &optionName) const
since the output is either discarded or not accessible.
On Windows, QCommandLineParser uses message boxes to display usage information
- and errors if no console window can be obtained.
+ and errors if no console window can be obtained. These message boxes can be omitted by setting
+ the \c QT_COMMAND_LINE_PARSER_NO_GUI_MESSAGE_BOXES environment variable.
For other platforms, it is recommended to display help texts and error messages
using a QMessageBox. To preserve the formatting of the help text, rich text