public function parse() {
		$this->_invalid = array();
		$this->_parsed = array();
		$this->_lexer = new Lexer($this->_input);

		$this->_applyDefaults();

		foreach ($this->_lexer as $argument) {
			if ($this->_parseFlag($argument)) {
				continue;
			}
			if ($this->_parseOption($argument)) {
				continue;
			}

			array_push($this->_invalid, $argument->raw);
		}

		if ($this->_strict && !empty($this->_invalid)) {
			throw new InvalidArguments($this->_invalid);
		}
	}
public function parse() {
		$this->_invalid = array();
		$this->_parsed = array();
		$this->_lexer = new Lexer($this->_input);

		$this->_applyDefaults();

		foreach ($this->_lexer as $argument) {
			if ($this->_parseFlag($argument)) {
				continue;
			}
			if ($this->_parseOption($argument)) {
				continue;
			}

			array_push($this->_invalid, $argument->raw);
		}

		if ($this->_strict && !empty($this->_invalid)) {
			throw new InvalidArguments($this->_invalid);
		}
	}
public function parse ( ) { $ this -> _invalid = array ( ) ; $ this -> _parsed = array ( ) ; $ this -> _lexer = new Lexer ( $ this -> _input ) ; $ this -> _applyDefaults ( ) ; foreach ( $ this -> _lexer as $ argument ) { if ( $ this -> _parseFlag ( $ argument ) ) { continue ; } if ( $ this -> _parseOption ( $ argument ) ) { continue ; } array_push ( $ this -> _invalid , $ argument -> raw ) ; } if ( $ this -> _strict && ! empty ( $ this -> _invalid ) ) { throw new InvalidArguments ( $ this -> _invalid ) ; } }
Parses the argument list with the given options. The returned argument list
will use either the first long name given or the first name in the list
if a long name is not given.

@return array
@throws arguments\InvalidArguments
Parses the argument list with the given options . The returned argument list will use either the first long name given or the first name in the list if a long name is not given .