diff options
author | Sami Shalayel <sami.shalayel@qt.io> | 2022-11-28 08:55:40 +0100 |
---|---|---|
committer | Sami Shalayel <sami.shalayel@qt.io> | 2022-11-28 10:49:23 +0100 |
commit | e11c1eda4fbd1910f9089dae60e4d22bfe3bb595 (patch) | |
tree | d96ec27fe7765f8619e852b5a2eed4b51692380e /tools/qmllint/main.cpp | |
parent | 0765c176e7b7ee73b1ac6d6efdabc93e4dec978f (diff) |
qmllint: document new behavior of --json
Amends 5c04d174282a9a36ce12b26e1807d3d5051a7f33.
The behavior of qmllint changed in the above-mentioned commit, as it
started expecting a file argument for the --json option. Before, it was
not expecting any and always writing to stdout.
Document the new behavior in the docs and in the --help command,
especially the part about using '-' to restore the old behavior.
Fixes: QTBUG-108913
Pick-to: 6.4
Change-Id: I3a69a794a5362a575437d3d832d6e038c7a0755a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmllint/main.cpp')
-rw-r--r-- | tools/qmllint/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp index 95cd2ec29c..924691780b 100644 --- a/tools/qmllint/main.cpp +++ b/tools/qmllint/main.cpp @@ -55,7 +55,8 @@ All warnings can be set to three levels: parser.addOption(silentOption); QCommandLineOption jsonOption(QStringList() << "json", - QLatin1String("Write output as JSON to file"), + QLatin1String("Write output as JSON to file (or use the special " + "filename '-' to write to stdout)"), QLatin1String("file"), QString()); parser.addOption(jsonOption); |