aboutsummaryrefslogtreecommitdiff
path: root/src/bdrem/UserInterface.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2016-06-17 21:27:16 +0200
committerChristian Weiske <cweiske@cweiske.de>2016-06-17 21:27:16 +0200
commit5c88f5e19a69485da44e132e0b102b835eee7f05 (patch)
tree80bdff4146bc4039a67691c017601f937ce6f6eb /src/bdrem/UserInterface.php
parent90672c8a146c77a194cb774d8088ca4da534defe (diff)
downloadbdrem-5c88f5e19a69485da44e132e0b102b835eee7f05.tar.gz
bdrem-5c88f5e19a69485da44e132e0b102b835eee7f05.zip
debug option for mail renderer
Diffstat (limited to 'src/bdrem/UserInterface.php')
-rw-r--r--src/bdrem/UserInterface.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bdrem/UserInterface.php b/src/bdrem/UserInterface.php
index b0b21cc..8a25bf4 100644
--- a/src/bdrem/UserInterface.php
+++ b/src/bdrem/UserInterface.php
@@ -149,6 +149,14 @@ abstract class UserInterface
'action' => 'StoreString'
)
);
+ $parser->addOption(
+ 'debug',
+ array(
+ 'long_name' => '--debug',
+ 'description' => 'Development helper (mail)',
+ 'action' => 'StoreTrue'
+ )
+ );
return $parser;
}
@@ -171,6 +179,7 @@ abstract class UserInterface
$this->config->daysNext = $result->options['daysNext'];
$this->config->daysPrev = $result->options['daysPrev'];
+ $this->config->debug = $result->options['debug'];
$this->config->renderer = $result->options['renderer'];
$this->config->stopOnEmpty = $result->options['stopOnEmpty'];
$this->config->setDate($result->options['date']);