Add the nocolor option.
authorGunnar Wrobel <p@rdus.de>
Sun, 3 Oct 2010 17:39:48 +0000 (19:39 +0200)
committerGunnar Wrobel <p@rdus.de>
Sun, 3 Oct 2010 17:45:51 +0000 (19:45 +0200)
components/lib/Components/Config/Cli.php

index 14d0fa2..e635057 100644 (file)
@@ -80,6 +80,16 @@ implements Components_Config
                 )
             )
         );
+        $parser->addOption(
+            new Horde_Argv_Option(
+                '-N',
+                '--nocolor',
+                array(
+                    'action' => 'store_true',
+                    'help'   => 'Avoid colors in the output'
+                )
+            )
+        );
     }
 
     /**