src/CLI/Command/ArgumentParser.php
protected function onReadOptionValue( $sign, &$status, &$buffer, &$option )
	{
		if( $sign == "-" )																//  illegal Option following
			throw new RuntimeException( 'Missing value of option "'.$option.'"' );
		if( $sign == " " )																//  closing value...
		{
			if( !$buffer ){																//  no value
				if( !$this->possibleOptions[$option] )									//  no value required/defined
					$this->foundOptions[$option]	= TRUE;								//  assign true for existance
				return;																	//
			}
			if( $this->possibleOptions[$option] !== TRUE ){								//  must match regexp
				if( !preg_match( $this->possibleOptions[$option], $buffer ) )			//  not matching
					throw new InvalidArgumentException( 'Argument "'.$option.'" has invalid value' );
			}
			$this->foundOptions[$option]	= $buffer;
			$buffer	= "";
			$status	= self::STATUS_START;
			return;
		}
		$buffer	.= $sign;
	}
protected function onReadOptionValue( $sign, &$status, &$buffer, &$option )
	{
		if( $sign == "-" )																//  illegal Option following
			throw new RuntimeException( 'Missing value of option "'.$option.'"' );
		if( $sign == " " )																//  closing value...
		{
			if( !$buffer ){																//  no value
				if( !$this->possibleOptions[$option] )									//  no value required/defined
					$this->foundOptions[$option]	= TRUE;								//  assign true for existance
				return;																	//
			}
			if( $this->possibleOptions[$option] !== TRUE ){								//  must match regexp
				if( !preg_match( $this->possibleOptions[$option], $buffer ) )			//  not matching
					throw new InvalidArgumentException( 'Argument "'.$option.'" has invalid value' );
			}
			$this->foundOptions[$option]	= $buffer;
			$buffer	= "";
			$status	= self::STATUS_START;
			return;
		}
		$buffer	.= $sign;
	}
protected function onReadOptionValue ( $ sign , & $ status , & $ buffer , & $ option ) { if ( $ sign == "-" ) //  illegal Option following throw new RuntimeException ( 'Missing value of option "' . $ option . '"' ) ; if ( $ sign == " " ) //  closing value... { if ( ! $ buffer ) { //  no value if ( ! $ this -> possibleOptions [ $ option ] ) //  no value required/defined $ this -> foundOptions [ $ option ] = TRUE ; //  assign true for existance return ; // } if ( $ this -> possibleOptions [ $ option ] !== TRUE ) { //  must match regexp if ( ! preg_match ( $ this -> possibleOptions [ $ option ] , $ buffer ) ) //  not matching throw new InvalidArgumentException ( 'Argument "' . $ option . '" has invalid value' ) ; } $ this -> foundOptions [ $ option ] = $ buffer ; $ buffer = "" ; $ status = self :: STATUS_START ; return ; } $ buffer .= $ sign ; }
Handles current Sign in STATUS_READ_OPTION_VALUE.
@access		protected
@param		string		$sign		Sign to handle
@param		int			$status		Status Reference
@param		string		$buffer		Argument Buffer Reference
@param		string		$option		Option Buffer Reference
@return		void
Handles current Sign in STATUS_READ_OPTION_VALUE .