logcat: Map '-C' to 'logcat -v color'

Change-Id: I0419f4551a6dfd77c7d4833050b36da28113ed9b
diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp
index 7e79c6d..2fb8c2f 100644
--- a/logcat/logcat.cpp
+++ b/logcat/logcat.cpp
@@ -391,6 +391,7 @@
   Formatting:
 
   -v, --format=FORMAT         Sets log print format. See FORMAT below.
+  -C                          Colored output.
   -D, --dividers              Print dividers between each log buffer.
   -B, --binary                Output the log in binary.
       --proto                 Output the log in protobuffer.
@@ -659,6 +660,7 @@
           { "dividers",      no_argument,       nullptr, 'D' },
           { "file",          required_argument, nullptr, 'f' },
           { "format",        required_argument, nullptr, 'v' },
+          { "color",         no_argument,       nullptr, 'C' },
           // hidden and undocumented reserved alias for --regex
           { "grep",          required_argument, nullptr, 'e' },
           // hidden and undocumented reserved alias for --max-count
@@ -684,7 +686,7 @@
         };
         // clang-format on
 
-        int c = getopt_long(argc, argv, ":cdDhLt:T:gG:sQf:r:n:v:b:BSpP:m:e:", long_options,
+        int c = getopt_long(argc, argv, ":cdDhLt:T:gG:sQf:r:n:v:b:BSpCP:m:e:", long_options,
                             &option_index);
         if (c == -1) break;
 
@@ -823,6 +825,10 @@
                 setPruneList = optarg;
                 break;
 
+            case 'C':
+                SetLogFormat("color");
+            break;
+
             case 'b':
                 for (const auto& buffer : Split(optarg, delimiters)) {
                     if (buffer == "default") {