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 |
Please login to continue.