classes/options.php
private function enforceOptions() {
		foreach ($this->validShortOptions as $option => $info) {
			if ($info['option'] === self::OPTION_REQUIRED && !isset($this->options[$option])) {
				die("The option `{$option}` is required to be given.\n	{$info['comment']}\n	{$info['description']}\n	Example: {$info['example']}\n");
			}
		}
		foreach ($this->validLongOptions as $option => $info) {
			if ($info['option'] === self::OPTION_REQUIRED && !isset($this->options[$option])) {
				die("The option `{$option}` is required to be given.\n	{$info['comment']}\n	{$info['description']}\n	Example: {$info['example']}\n");
			}
		}
	}
private function enforceOptions() {
		foreach ($this->validShortOptions as $option => $info) {
			if ($info['option'] === self::OPTION_REQUIRED && !isset($this->options[$option])) {
				die("The option `{$option}` is required to be given.\n	{$info['comment']}\n	{$info['description']}\n	Example: {$info['example']}\n");
			}
		}
		foreach ($this->validLongOptions as $option => $info) {
			if ($info['option'] === self::OPTION_REQUIRED && !isset($this->options[$option])) {
				die("The option `{$option}` is required to be given.\n	{$info['comment']}\n	{$info['description']}\n	Example: {$info['example']}\n");
			}
		}
	}
private function enforceOptions ( ) { foreach ( $ this -> validShortOptions as $ option => $ info ) { if ( $ info [ 'option' ] === self :: OPTION_REQUIRED && ! isset ( $ this -> options [ $ option ] ) ) { die ( "The option `{$option}` is required to be given.\n	{$info['comment']}\n	{$info['description']}\n	Example: {$info['example']}\n" ) ; } } foreach ( $ this -> validLongOptions as $ option => $ info ) { if ( $ info [ 'option' ] === self :: OPTION_REQUIRED && ! isset ( $ this -> options [ $ option ] ) ) { die ( "The option `{$option}` is required to be given.\n	{$info['comment']}\n	{$info['description']}\n	Example: {$info['example']}\n" ) ; } } }
Enforce usage of required options.

@access	private
@return	void
Enforce usage of required options .