Property | Type | Description | |
---|---|---|---|
$args | array | ||
$description | string | ||
$flags | array | ||
$options | array | ||
$subCommands | array | ||
$usage | string |
Method | Description | |
---|---|---|
__toString ( ) | ||
fromCommandClass ( string $name, string $subCommand = null ) : |
Creates an Help object from a class subclassing Command | |
fromFQDN ( string $fqdn, string $subCommand = null ) : |
Creates an Help object from a FQDN | |
fromFunction ( string $name ) : |
Creates an Help object from a function | |
getArgs ( ) : array | ||
getDescrition ( ) : string | ||
getFlags ( ) : array | ||
getOptions ( ) : array | ||
getSubCommands ( ) : array | ||
getUsage ( ) : string | ||
hasSubCommands ( ) : boolean | ||
render ( ) : string |
Method | Description | |
---|---|---|
__construct ( string $text = '' ) | ||
parse ( ) |
public static fromCommandClass ( string $name, string $subCommand = null ) : |
||
$name | string | |
$subCommand | string | |
return |
public static fromFunction ( string $name ) : |
||
$name | string | |
return |