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
// show as integer to avoid confusion
$defaultValue = (int) $defaultValue;
}
if ($type === 'boolean') {
$type = 'boolean, 0 or 1';
}
$doc = "$type (defaults to " . var_export($defaultValue, true) . ")";
} elseif (trim($type) !== '') {
if ($type === 'boolean') {
$type = 'boolean, 0 or 1';
}
$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