diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-09-24 19:23:19 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-09-24 19:24:24 -0400 |
commit | a6e3cab65a4e0b8dc14473eb83b10eaff2e7848d (patch) | |
tree | 236f764cb1a157fa6a698b3c7dec6a1878b66e2f /doc | |
parent | 7b860affbeb015aa0298a95b1e23eb8db7d181cc (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.1 | 6 | ||||
-rw-r--r-- | doc/rg.1.md | 4 |
2 files changed, 10 insertions, 0 deletions
@@ -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. |