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
Afficher le fichier Open project: maximebf/consolekit Class Usage Examples

Méthodes publiques

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

Method Details

parse() public méthode

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