Skip to content
Permalink
Browse files

Testing option value as a string

  • Loading branch information...
sime committed Dec 10, 2012
1 parent 80773ad commit 693ca5481e24ae49f746b61e7159ef5c0f26b162
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Console/ConsoleOptionParser.php
@@ -585,7 +585,7 @@ protected function _parseOption($name, $params) {
$option = $this->_options[$name];
$isBoolean = $option->isBoolean();
$nextValue = $this->_nextToken();
$emptyNextValue = (empty($nextValue) && $nextValue != 0);
$emptyNextValue = (empty($nextValue) && $nextValue !== '0');
if (!$isBoolean && !$emptyNextValue && !$this->_optionExists($nextValue)) {
array_shift($this->_tokens);
$value = $nextValue;

0 comments on commit 693ca54

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.