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

Update documentation for --color ansi

In `src/app.rs`, change typo "When ansi used" to "When ansi is used".
Update man pages with missing `ansi` option for `--color`.
This commit is contained in:
Eric Nielsen 2017-05-25 17:04:45 -05:00 committed by Andrew Gallant
parent 1e3fc79949
commit 2c98e5ce1e
3 changed files with 9 additions and 9 deletions

View File

@ -43,8 +43,8 @@ Only show count of line matches for each file.
.RE .RE
.TP .TP
.B \-\-color \f[I]WHEN\f[] .B \-\-color \f[I]WHEN\f[]
Whether to use coloring in match. Whether to use color in the output.
Valid values are never, always or auto. Valid values are never, auto, always or ansi.
[default: auto] [default: auto]
.RS .RS
.RE .RE

View File

@ -36,8 +36,8 @@ Project home page: https://github.com/BurntSushi/ripgrep
: Only show count of line matches for each file. : Only show count of line matches for each file.
--color *WHEN* --color *WHEN*
: Whether to use coloring in match. Valid values are never, always or auto. : Whether to use color in the output. Valid values are never, auto, always or
[default: auto] ansi. [default: auto]
-e, --regexp *PATTERN* ... -e, --regexp *PATTERN* ...
: Use PATTERN to search. This option can be provided multiple times, where all : Use PATTERN to search. This option can be provided multiple times, where all

View File

@ -228,10 +228,10 @@ lazy_static! {
"Only show count of matches for each file."); "Only show count of matches for each file.");
doc!(h, "color", doc!(h, "color",
"When to use color. [default: auto]", "When to use color. [default: auto]",
"When to use color in the output. The possible values are \ "When to use color in the output. The possible values are never, \
never, auto, always or ansi. The default is auto. When always \ auto, always or ansi. The default is auto. When always is used, \
is used, coloring is attempted based on your environment. When \ coloring is attempted based on your environment. When ansi is \
ansi used, coloring is forcefully done using ANSI escape color \ used, coloring is forcefully done using ANSI escape color \
codes."); codes.");
doc!(h, "colors", doc!(h, "colors",
"Configure color settings and styles.", "Configure color settings and styles.",