src/CLI/Command/ArgumentParser.php
protected function onReadOptionKey( $sign, &$status, &$buffer, &$option )
	{
		if( in_array( $sign, array( " ", ":", "=" ) ) )
		{
			if( !array_key_exists( $option, $this->possibleOptions ) )
				throw new InvalidArgumentException( 'Invalid option "'.$option.'"' );
			if( !$this->possibleOptions[$option] )
			{
				if( $sign !== " " )
					throw new InvalidArgumentException( 'Option "'.$option.'" cannot receive a value' );
				$this->foundOptions[$option]	= TRUE;
				$status	= self::STATUS_START;
			}
			else
			{
				$buffer	= "";
				$status	= self::STATUS_READ_OPTION_VALUE;
			}
		}
		else if( $sign !== "-" )
			$option	.= $sign;
	}
protected function onReadOptionKey( $sign, &$status, &$buffer, &$option )
	{
		if( in_array( $sign, array( " ", ":", "=" ) ) )
		{
			if( !array_key_exists( $option, $this->possibleOptions ) )
				throw new InvalidArgumentException( 'Invalid option "'.$option.'"' );
			if( !$this->possibleOptions[$option] )
			{
				if( $sign !== " " )
					throw new InvalidArgumentException( 'Option "'.$option.'" cannot receive a value' );
				$this->foundOptions[$option]	= TRUE;
				$status	= self::STATUS_START;
			}
			else
			{
				$buffer	= "";
				$status	= self::STATUS_READ_OPTION_VALUE;
			}
		}
		else if( $sign !== "-" )
			$option	.= $sign;
	}
protected function onReadOptionKey ( $ sign , & $ status , & $ buffer , & $ option ) { if ( in_array ( $ sign , array ( " " , ":" , "=" ) ) ) { if ( ! array_key_exists ( $ option , $ this -> possibleOptions ) ) throw new InvalidArgumentException ( 'Invalid option "' . $ option . '"' ) ; if ( ! $ this -> possibleOptions [ $ option ] ) { if ( $ sign !== " " ) throw new InvalidArgumentException ( 'Option "' . $ option . '" cannot receive a value' ) ; $ this -> foundOptions [ $ option ] = TRUE ; $ status = self :: STATUS_START ; } else { $ buffer = "" ; $ status = self :: STATUS_READ_OPTION_VALUE ; } } else if ( $ sign !== "-" ) $ option .= $ sign ; }
Handles current Sign in STATUS_READ_OPTION_KEY.
@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_KEY .