Class Options
Class for better work with PHP comand-line options
public
|
#
__construct(
)
Control that script run from command line
Control that script run from command line Throws |
public static
array
|
|
public
|
|
public
|
|
public
|
#
description(
string
$description
)
Set text of common description in generated help
Set text of common description in generated help Parameters
Returns |
public
mixed
|
#
get(
string
$name
)
Return value of option. For set option without value return TRUE. If option is
not set, return FALSE.
Return value of option. For set option without value return TRUE. If option is not set, return FALSE. Parameters
ReturnsmixedThrows |
public
|
#
dependences(
string
$main,
string|array
$needed,
string
$groupName = NULL
)
Define dependences of options.
Define dependences of options. Parameters
ReturnsThrowsUnknown option Some option need some another option |
public
|
|
public
string
|
#
getHelp(
$maxLength =
Return "help" made from descriptions of options
Return "help" made from descriptions of options Returnsstring |
string
|
VERSION
|
'1.3.0' |
|
integer
|
HELP_MAX_LENGTH
|
75 |