controllers/shared/commandLine.php
protected function setNewParam( $short_param_name, $long_param_name, $help_string, $need_second_param, $is_required )
	{
		foreach ( $this->_shell_common_params as $param )
		{
			if ( ( $short_param_name == $param['short_param_name'] ) || ( $long_param_name == $param['long_param_name'] ) )
			{
				throw new \RuntimeException( 'You are trying to set a previously defined param.' );
			}
		}

		$this->_shell_common_params[] = array(
			'short_param_name'	=> $short_param_name,
			'long_param_name'	=> $long_param_name,
			'help_string'		=> $help_string,
			'need_second_param'	=> $need_second_param,
			'is_required'		=> $is_required,
			);

	}
protected function setNewParam( $short_param_name, $long_param_name, $help_string, $need_second_param, $is_required )
	{
		foreach ( $this->_shell_common_params as $param )
		{
			if ( ( $short_param_name == $param['short_param_name'] ) || ( $long_param_name == $param['long_param_name'] ) )
			{
				throw new \RuntimeException( 'You are trying to set a previously defined param.' );
			}
		}

		$this->_shell_common_params[] = array(
			'short_param_name'	=> $short_param_name,
			'long_param_name'	=> $long_param_name,
			'help_string'		=> $help_string,
			'need_second_param'	=> $need_second_param,
			'is_required'		=> $is_required,
			);

	}
protected function setNewParam ( $ short_param_name , $ long_param_name , $ help_string , $ need_second_param , $ is_required ) { foreach ( $ this -> _shell_common_params as $ param ) { if ( ( $ short_param_name == $ param [ 'short_param_name' ] ) || ( $ long_param_name == $ param [ 'long_param_name' ] ) ) { throw new \ RuntimeException ( 'You are trying to set a previously defined param.' ) ; } } $ this -> _shell_common_params [ ] = array ( 'short_param_name' => $ short_param_name , 'long_param_name' => $ long_param_name , 'help_string' => $ help_string , 'need_second_param' => $ need_second_param , 'is_required' => $ is_required , ) ; }
Set a new exec param.

@param string $short_param_name The short option id.
@param string $long_param_name The long name option.
@param string $help_string The help string.
@param boolean $need_second_param True if needs a param.
@param boolean $is_required Must be set.
@throws \RuntimeException
Set a new exec param .