diff --git a/doc/rg.1 b/doc/rg.1 index 375b466..8c70e71 100644 --- a/doc/rg.1 +++ b/doc/rg.1 @@ -35,11 +35,6 @@ Only show count of line matches for each file. .RS .RE .TP -.B \-l, \-\-files\-with\-matches -Only show path of each file with matches. -.RS -.RE -.TP .B \-\-color \f[I]WHEN\f[] Whether to use coloring in match. Valid values are never, always or auto. @@ -175,6 +170,11 @@ Print each file that would be searched (but don\[aq]t search). .RS .RE .TP +.B \-l, \-\-files\-with\-matches +Only show path of each file with matches. +.RS +.RE +.TP .B \-H, \-\-with\-filename Prefix each match with the file name that contains it. This is the default when more than one file is searched. diff --git a/doc/rg.1.md b/doc/rg.1.md index 4c38ddf..3a6c579 100644 --- a/doc/rg.1.md +++ b/doc/rg.1.md @@ -29,9 +29,6 @@ the raw speed of grep. -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. Valid values are never, always or auto. [default: auto] @@ -114,6 +111,9 @@ the raw speed of grep. --files : 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 : Prefix each match with the file name that contains it. This is the default when more than one file is searched. diff --git a/src/args.rs b/src/args.rs index 5c3376a..48c9187 100644 --- a/src/args.rs +++ b/src/args.rs @@ -47,7 +47,6 @@ rg recursively searches your current directory for a regex pattern. Common options: -a, --text Search binary files as if they were text. -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. Valid values are never, always or auto. [default: auto] @@ -112,6 +111,9 @@ Less common options: --files 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 Prefix each match with the file name that contains it. This is the default when more than one file is searched.