1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-04-19 09:02:15 +02:00

Move --files-with-matches to less common options.

This commit is contained in:
Andrew Gallant 2016-09-25 18:32:41 -04:00
parent ed94aedf27
commit 982265af70
3 changed files with 11 additions and 9 deletions

View File

@ -35,11 +35,6 @@ Only show count of line matches for each file.
.RS .RS
.RE .RE
.TP .TP
.B \-l, \-\-files\-with\-matches
Only show path of each file with matches.
.RS
.RE
.TP
.B \-\-color \f[I]WHEN\f[] .B \-\-color \f[I]WHEN\f[]
Whether to use coloring in match. Whether to use coloring in match.
Valid values are never, always or auto. Valid values are never, always or auto.
@ -175,6 +170,11 @@ Print each file that would be searched (but don\[aq]t search).
.RS .RS
.RE .RE
.TP .TP
.B \-l, \-\-files\-with\-matches
Only show path of each file with matches.
.RS
.RE
.TP
.B \-H, \-\-with\-filename .B \-H, \-\-with\-filename
Prefix each match with the file name that contains it. Prefix each match with the file name that contains it.
This is the default when more than one file is searched. This is the default when more than one file is searched.

View File

@ -29,9 +29,6 @@ the raw speed of grep.
-c, --count -c, --count
: Only show count of line matches for each file. : Only show count of line matches for each file.
-l, --files-with-matches
: Only show path of each file with matches.
--color *WHEN* --color *WHEN*
: Whether to use coloring in match. Valid values are never, always or auto. : Whether to use coloring in match. Valid values are never, always or auto.
[default: auto] [default: auto]
@ -114,6 +111,9 @@ the raw speed of grep.
--files --files
: Print each file that would be searched (but don't search). : Print each file that would be searched (but don't search).
-l, --files-with-matches
: Only show path of each file with matches.
-H, --with-filename -H, --with-filename
: Prefix each match with the file name that contains it. This is the : Prefix each match with the file name that contains it. This is the
default when more than one file is searched. default when more than one file is searched.

View File

@ -47,7 +47,6 @@ rg recursively searches your current directory for a regex pattern.
Common options: Common options:
-a, --text Search binary files as if they were text. -a, --text Search binary files as if they were text.
-c, --count Only show count of line matches for each file. -c, --count Only show count of line matches for each file.
-l, --files-with-matches Only show path of each file with matches.
--color WHEN Whether to use coloring in match. --color WHEN Whether to use coloring in match.
Valid values are never, always or auto. Valid values are never, always or auto.
[default: auto] [default: auto]
@ -112,6 +111,9 @@ Less common options:
--files --files
Print each file that would be searched (but don't search). Print each file that would be searched (but don't search).
-l, --files-with-matches
Only show path of each file with matches.
-H, --with-filename -H, --with-filename
Prefix each match with the file name that contains it. This is the Prefix each match with the file name that contains it. This is the
default when more than one file is searched. default when more than one file is searched.