src/CLI/Command/ArgumentParser.php
public function setPossibleOptions( $options )
	{
		if( !is_array( $options ) )														//  no Array given
			throw InvalidArgumentException( 'No array given.' );						//  throw Exception
		if( $options === $this->possibleOptions )										//  threse Options are already set
			return FALSE;																//  do nothing
		$this->possibleOptions	= $options;												//  set new Options
		return TRUE;																	//  indicate Success
	}
public function setPossibleOptions( $options )
	{
		if( !is_array( $options ) )														//  no Array given
			throw InvalidArgumentException( 'No array given.' );						//  throw Exception
		if( $options === $this->possibleOptions )										//  threse Options are already set
			return FALSE;																//  do nothing
		$this->possibleOptions	= $options;												//  set new Options
		return TRUE;																	//  indicate Success
	}
public function setPossibleOptions ( $ options ) { if ( ! is_array ( $ options ) ) //  no Array given throw InvalidArgumentException ( 'No array given.' ) ; //  throw Exception if ( $ options === $ this -> possibleOptions ) //  threse Options are already set return FALSE ; //  do nothing $ this -> possibleOptions = $ options ; //  set new Options return TRUE ; //  indicate Success }
Sets Map of Options with optional Regex Patterns.
@access		public
@param		array		$options		Map of Options and their Regex Patterns (or empty for a Non-Value-Option)
@return		bool
Sets Map of Options with optional Regex Patterns .