Method |
Description |
|
__construct ( array $options = [] ) |
The Constructor. |
|
add ( string $name, mixed $value ) : array |
Adds a value to a specific option (or set if it's not an array). |
|
cast ( string $value, string $type, boolean $array = false ) : array |
Casts a value according to the option attributes. |
|
exists ( string $name ) : boolean |
Checks if an option has been setted. |
|
get ( string $name = null ) : array |
Gets the value of a specific option. |
|
option ( string $name = null, array $config = [], $value = null ) : array |
Gets/Sets/Overrides an option's attributes. |
|
options ( ) : array |
Returns all options attributes. |
|
parse ( array $argv, boolean $override = true ) : array |
Parses a command line argv. |
|
set ( string $name, mixed $value ) : array |
Sets the value of a specific option. |
|