//set default renderer to console
$parser->options['renderer']->default = 'console';
+ $parser->addOption(
+ 'ansi',
+ array(
+ 'long_name' => '--no-color',
+ 'description' => 'Do not output ANSI color codes',
+ 'action' => 'StoreFalse',
+ 'default' => true
+ )
+ );
+
//only on CLI
$parser->addCommand(
'readme', array(
$this->config->renderer = $result->options['renderer'];
$this->config->stopOnEmpty = $result->options['stopOnEmpty'];
$this->config->setDate($result->options['date']);
+ if (isset($result->options['ansi'])) {
+ $this->config->ansi = $result->options['ansi'];
+ }
return $result;
} catch (\Exception $exc) {
$this->preRenderParameterError();