summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-09-24 19:23:19 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-09-24 19:24:24 -0400
commita6e3cab65a4e0b8dc14473eb83b10eaff2e7848d (patch)
tree236f764cb1a157fa6a698b3c7dec6a1878b66e2f /doc
parent7b860affbeb015aa0298a95b1e23eb8db7d181cc (diff)
Add --no-filename flag.
When this flag is set, a filename is never shown for a match. Closes #20
Diffstat (limited to 'doc')
-rw-r--r--doc/rg.16
-rw-r--r--doc/rg.1.md4
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/rg.1 b/doc/rg.1
index c115844e..68cdda99 100644
--- a/doc/rg.1
+++ b/doc/rg.1
@@ -175,6 +175,12 @@ This is the default when more than one file is searched.
.RS
.RE
.TP
+.B \-\-no\-filename
+Never show the filename for a match.
+This is the default when one file is searched.
+.RS
+.RE
+.TP
.B \-\-heading
Show the file name above clusters of matches from each file.
This is the default mode at a tty.
diff --git a/doc/rg.1.md b/doc/rg.1.md
index 028d3a57..7de82e89 100644
--- a/doc/rg.1.md
+++ b/doc/rg.1.md
@@ -114,6 +114,10 @@ the raw speed of grep.
: Prefix each match with the file name that contains it. This is the
default when more than one file is searched.
+--no-filename
+: Never show the filename for a match. This is the default when
+ one file is searched.
+
--heading
: Show the file name above clusters of matches from each file.
This is the default mode at a tty.