Skip to content

Commit

Permalink
[console] Fix read debug ParameterOption. (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Jun 27, 2017
1 parent be1ced4 commit 9e68c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/ArgvInputReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +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);
$debug = $input->hasParameterOption(['--debug']);
$uri = $input->getParameterOption(['--uri', '-l']) ?: 'default';
if ($uri && !preg_match('/^(http|https):\/\//', $uri)) {
$uri = sprintf('http://%s', $uri);
Expand Down

0 comments on commit 9e68c87

Please sign in to comment.