PHP Class ConsoleKit\DefaultOptionsParser

Options can be of the form: --key=value --key -a -ab (equivalent of -a -b) When an option has no value, true will be used. If multiple key/value pairs with the same key are specified, the "key" value will be an array containing all the values. If "--" is detected, all folowing values will be treated as a single argument
Inheritance: implements consolekit\OptionsParser
Show file Open project: maximebf/consolekit Class Usage Examples

Public Methods

Method Description
parse ( array $argv ) : array Parses the array and returns a tuple containing the arguments and the options

Method Details

parse() public method

Parses the array and returns a tuple containing the arguments and the options
public parse ( array $argv ) : array
$argv array
return array