1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-07-16 22:42:20 +02:00

Note -e/--regexp's additional usefulness.

Specifically, it can be used when searching for patterns that start
with a dash.

Fixes #215
This commit is contained in:
Andrew Gallant
2016-11-06 12:10:27 -05:00
parent 0222e024fe
commit 598b162fea
2 changed files with 4 additions and 2 deletions

View File

@ -35,7 +35,8 @@ the raw speed of grep.
-e, --regexp *PATTERN* ...
: Use PATTERN to search. This option can be provided multiple times, where all
patterns given are searched.
patterns given are searched. This is also useful when searching for patterns
that start with a dash.
-F, --fixed-strings
: Treat the pattern as a literal string instead of a regular expression.

View File

@ -48,7 +48,8 @@ Common options:
[default: auto]
-e, --regexp PATTERN ... Use PATTERN to search. This option can be
provided multiple times, where all patterns
given are searched.
given are searched. This is also useful when
searching for a pattern that starts with a dash.
-F, --fixed-strings Treat the pattern as a literal string instead of
a regular expression.
-g, --glob GLOB ... Include or exclude files for searching that