PHP 클래스 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
상속: implements consolekit\OptionsParser
파일 보기 프로젝트 열기: maximebf/consolekit 1 사용 예제들

공개 메소드들

메소드 설명
parse ( array $argv ) : array Parses the array and returns a tuple containing the arguments and the options

메소드 상세

parse() 공개 메소드

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