Add -o/--only-matching flag.

Currently, the `--only-matching` flag conflicts with the `--replace`
flag. In the future, this restriction may be relaxed.

Fixes #34
This commit is contained in:
Roman Proskuryakov
2017-03-28 21:14:32 +03:00
committed by Andrew Gallant
parent 9456d95e8f
commit 90a11dec5e
5 changed files with 55 additions and 2 deletions

View File

@@ -249,6 +249,10 @@ Project home page: https://github.com/BurntSushi/ripgrep
a list of matching files such as with --count, --files-with-matches
and --files.
-o, --only-matching
: Print only the matched (non-empty) parts of a matching line, with each such
part on a separate output line.
--path-separator *SEPARATOR*
: The path separator to use when printing file paths. This defaults to your
platform's path separator, which is / on Unix and \\ on Windows. This flag is