console\controllers\HelpController formatOptionHelp()

formatOptionHelp() protected method

Generates a well-formed string for an argument or option.

protected string formatOptionHelp ( $name, $required, $type, $defaultValue, $comment )
$name string

The name of the argument or option

$required boolean

Whether the argument is required

$type string

The type of the option or argument

$defaultValue mixed

The default value of the option or argument

$comment string

Comment about the option or argument

return string

The formatted string for the argument or option

doc_Yii
2016-10-30 16:55:06
Comments
Leave a Comment

Please login to continue.