Skip to content

Commit

Permalink
[console] Ad debug option to ArgvInputReader class. (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed May 10, 2017
1 parent 28c6e8b commit 9c76535
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Utils/ArgvInputReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private function readArgvInputValues()
$source = $input->getParameterOption(['--source', '-s'], null);
$target = $input->getParameterOption(['--target', '-t'], null);
$root = $input->getParameterOption(['--root'], null);
$debug = $input->getParameterOption(['--debug'], false);
$uri = $input->getParameterOption(['--uri', '-l']) ?: 'default';
if ($uri && !preg_match('/^(http|https):\/\//', $uri)) {
$uri = sprintf('http://%s', $uri);
Expand All @@ -159,6 +160,7 @@ private function readArgvInputValues()
$this->set('command', $input->getFirstArgument());
$this->set('root', $root);
$this->set('uri', $uri);
$this->set('debug', $debug);
$this->set('source', $source);
$this->set('target', $target);
}
Expand Down

0 comments on commit 9c76535

Please sign in to comment.