From 2c98e5ce1eec741bf55df655c74b9d64ee5c7703 Mon Sep 17 00:00:00 2001
From: Eric Nielsen <eric@amalgamar.com.br>
Date: Thu, 25 May 2017 17:04:45 -0500
Subject: [PATCH] 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`.
---
 doc/rg.1    |  4 ++--
 doc/rg.1.md |  4 ++--
 src/app.rs  | 10 +++++-----
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/doc/rg.1 b/doc/rg.1
index c6de0a30..e36ed8a1 100644
--- a/doc/rg.1
+++ b/doc/rg.1
@@ -43,8 +43,8 @@ Only show count of line matches for each file.
 .RE
 .TP
 .B \-\-color \f[I]WHEN\f[]
-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 ansi.
 [default: auto]
 .RS
 .RE
diff --git a/doc/rg.1.md b/doc/rg.1.md
index 41c91b5e..77c41280 100644
--- a/doc/rg.1.md
+++ b/doc/rg.1.md
@@ -36,8 +36,8 @@ Project home page: https://github.com/BurntSushi/ripgrep
 : Only show count of line matches for each file.
 
 --color *WHEN*
-: Whether to use coloring in match. Valid values are never, always or auto.
-  [default: auto]
+: Whether to use color in the output. Valid values are never, auto, always or
+  ansi. [default: auto]
 
 -e, --regexp *PATTERN* ...
 : Use PATTERN to search. This option can be provided multiple times, where all
diff --git a/src/app.rs b/src/app.rs
index 44e49517..f14e3a0c 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -228,11 +228,11 @@ lazy_static! {
              "Only show count of matches for each file.");
         doc!(h, "color",
              "When to use color. [default: auto]",
-             "When to use color in the output. The possible values are \
-              never, auto, always or ansi. The default is auto. When always \
-              is used, coloring is attempted based on your environment. When \
-              ansi used, coloring is forcefully done using ANSI escape color \
-              codes.");
+             "When to use color in the output. The possible values are never, \
+             auto, always or ansi. The default is auto. When always is used, \
+             coloring is attempted based on your environment. When ansi is \
+             used, coloring is forcefully done using ANSI escape color \
+             codes.");
         doc!(h, "colors",
              "Configure color settings and styles.",
              "This flag specifies color settings for use in the output. \