Commit d471f0ba by Alexander Makarov

Fixes #4288: added a hint on how to specify console boolean values to the output of help

parent f21c2c29
...@@ -329,8 +329,14 @@ class HelpController extends Controller ...@@ -329,8 +329,14 @@ class HelpController extends Controller
// show as integer to avoid confusion // show as integer to avoid confusion
$defaultValue = (int) $defaultValue; $defaultValue = (int) $defaultValue;
} }
if ($type === 'boolean') {
$type = 'boolean, 0 or 1';
}
$doc = "$type (defaults to " . var_export($defaultValue, true) . ")"; $doc = "$type (defaults to " . var_export($defaultValue, true) . ")";
} elseif (trim($type) !== '') { } elseif (trim($type) !== '') {
if ($type === 'boolean') {
$type = 'boolean, 0 or 1';
}
$doc = $type; $doc = $type;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment