lithium\console\command\Help::_render()
Output the formatted properties or methods.
Parameters
-
array
$params
From
_properties()
or_methods()
.
Returns
voidSource
protected function _render($params) {
foreach ($params as $name => $param) {
if ($name === 'run' || empty($param['name'])) {
continue;
}
$usage = (!empty($param['usage'])) ? trim($param['usage'], ' []') : $param['name'];
$this->out($this->_pad($usage), 'option');
if ($param['description']) {
$this->out($this->_pad($param['description'], 2));
}
$this->nl();
}
}