src/CLI/Command/ArgumentParser.php
public function setShortcuts( $shortcuts )
	{
		if( !is_array( $shortcuts ) )													//  no Array given
			throw InvalidArgumentException( 'No array given.' );						//  throw Exception
		foreach( $shortcuts as $short => $long )										//  iterate Shortcuts
			if( !array_key_exists( $long, $this->possibleOptions ) )					//  related Option is not set
				throw new OutOfBoundsException( 'Option "'.$long.'" not set' );			//  throw Exception
		if( $shortcuts === $this->shortcuts )											//  these Shortcuts are already set
			return FALSE;																//  do nothing
		$this->shortcuts	= $shortcuts;												//  set new Shortcuts
		return TRUE;																	//  indicate Success
	}
public function setShortcuts( $shortcuts )
	{
		if( !is_array( $shortcuts ) )													//  no Array given
			throw InvalidArgumentException( 'No array given.' );						//  throw Exception
		foreach( $shortcuts as $short => $long )										//  iterate Shortcuts
			if( !array_key_exists( $long, $this->possibleOptions ) )					//  related Option is not set
				throw new OutOfBoundsException( 'Option "'.$long.'" not set' );			//  throw Exception
		if( $shortcuts === $this->shortcuts )											//  these Shortcuts are already set
			return FALSE;																//  do nothing
		$this->shortcuts	= $shortcuts;												//  set new Shortcuts
		return TRUE;																	//  indicate Success
	}
public function setShortcuts ( $ shortcuts ) { if ( ! is_array ( $ shortcuts ) ) //  no Array given throw InvalidArgumentException ( 'No array given.' ) ; //  throw Exception foreach ( $ shortcuts as $ short => $ long ) //  iterate Shortcuts if ( ! array_key_exists ( $ long , $ this -> possibleOptions ) ) //  related Option is not set throw new OutOfBoundsException ( 'Option "' . $ long . '" not set' ) ; //  throw Exception if ( $ shortcuts === $ this -> shortcuts ) //  these Shortcuts are already set return FALSE ; //  do nothing $ this -> shortcuts = $ shortcuts ; //  set new Shortcuts return TRUE ; //  indicate Success }
Sets Map between Shortcuts and afore set Options.
@access		public
@param		array		$shortcuts		Array of Shortcuts for Options
@return		bool
Sets Map between Shortcuts and afore set Options .