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
ファイルを表示
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
Parses the array and returns a tuple containing the arguments and the options