summaryrefslogtreecommitdiffstats
path: root/crates/core/flags/defs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/core/flags/defs.rs')
-rw-r--r--crates/core/flags/defs.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/core/flags/defs.rs b/crates/core/flags/defs.rs
index d4e3daf1..dbb85779 100644
--- a/crates/core/flags/defs.rs
+++ b/crates/core/flags/defs.rs
@@ -3392,7 +3392,8 @@ flags are used in concert with \flag{json}.
.sp
Other flags that control aspects of the standard output such as
\flag{only-matching}, \flag{heading}, \flag{replace}, \flag{max-columns}, etc.,
-have no effect when \flag{json} is set.
+have no effect when \flag{json} is set. However, enabling JSON output will
+always implicitly and unconditionally enable \flag{stats}.
.sp
A more complete description of the JSON format used can be found here:
\fIhttps://docs.rs/grep-printer/*/grep_printer/struct.JSON.html\fP.
@@ -6420,6 +6421,8 @@ complete.
.sp
This set of aggregate statistics may expand over time.
.sp
+This flag is always and implicitly enabled when \flag{json} is used.
+.sp
Note that this flag has no effect if \flag{files}, \flag{files-with-matches} or
\flag{files-without-match} is passed.
"