summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-11-06 13:09:53 -0500
committerAndrew Gallant <jamslam@gmail.com>2016-11-06 13:09:53 -0500
commit58aca2efb24801b43870acac5b40c59fbc9ef350 (patch)
treefbb20a095b7cfad4d9c2baef86a8073097ec0299 /doc
parent351eddc17e3f7164978c2f001ff9b8e3bc328e33 (diff)
Add -m/--max-count flag.
This flag limits the number of matches printed *per file*. Closes #159
Diffstat (limited to 'doc')
-rw-r--r--doc/rg.15
-rw-r--r--doc/rg.1.md3
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/rg.1 b/doc/rg.1
index 3d7c1025..fa640e15 100644
--- a/doc/rg.1
+++ b/doc/rg.1
@@ -207,6 +207,11 @@ Follow symlinks.
.RS
.RE
.TP
+.B \-m, \-\-max\-count NUM
+Limit the number of matching lines per file searched to NUM.
+.RS
+.RE
+.TP
.B \-\-maxdepth \f[I]NUM\f[]
Descend at most NUM directories below the command line arguments.
A value of zero searches only the starting\-points themselves.
diff --git a/doc/rg.1.md b/doc/rg.1.md
index 67b3c33c..e2f42e73 100644
--- a/doc/rg.1.md
+++ b/doc/rg.1.md
@@ -135,6 +135,9 @@ Project home page: https://github.com/BurntSushi/ripgrep
-L, --follow
: Follow symlinks.
+-m, --max-count NUM
+: Limit the number of matching lines per file searched to NUM.
+
--maxdepth *NUM*
: Descend at most NUM directories below the command line arguments.
A value of zero searches only the starting-points themselves.