summaryrefslogtreecommitdiff
path: root/doc/cmd.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/cmd.rst')
-rw-r--r--doc/cmd.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst
index ad84a6ae..1aca89a8 100644
--- a/doc/cmd.rst
+++ b/doc/cmd.rst
@@ -477,14 +477,16 @@ You can specify the name of the output file with the ``-o`` switch.
Other common reporting options are described above in :ref:`cmd_reporting`.
+
.. _cmd_json:
JSON reporting
--------------
+--------------
The **json** command writes coverage data to a "coverage.json" file.
-You can specify the name of the output file with the ``-o`` switch.
+You can specify the name of the output file with the ``-o`` switch. The JSON
+can be nicely formatted by specifying the ``--pretty-print`` switch.
Other common reporting options are described above in :ref:`cmd_reporting`.