controllers/shared/commandLine.php
protected function parseParams()
	{
		$this->params['parsed_params'] = array();
		foreach ( $this->_shell_common_params as $common_param )
		{
			$value = false;
			foreach ( $this->command_options as $option )
			{
				if ( $option[0] === $common_param['short_param_name'] || $option[0] === $common_param['long_param_name'] )
				{
					if ( !isset( $option[1] ) )
					{
						$value = true;
					}
					else
					{
						$value = $option[1];
					}
					break;
				}
			}

			$this->params['parsed_params'][$common_param['short_param_name']] = $value;
			$this->params['parsed_params'][$common_param['long_param_name']] = $value;
		}
	}
protected function parseParams()
	{
		$this->params['parsed_params'] = array();
		foreach ( $this->_shell_common_params as $common_param )
		{
			$value = false;
			foreach ( $this->command_options as $option )
			{
				if ( $option[0] === $common_param['short_param_name'] || $option[0] === $common_param['long_param_name'] )
				{
					if ( !isset( $option[1] ) )
					{
						$value = true;
					}
					else
					{
						$value = $option[1];
					}
					break;
				}
			}

			$this->params['parsed_params'][$common_param['short_param_name']] = $value;
			$this->params['parsed_params'][$common_param['long_param_name']] = $value;
		}
	}
protected function parseParams ( ) { $ this -> params [ 'parsed_params' ] = array ( ) ; foreach ( $ this -> _shell_common_params as $ common_param ) { $ value = false ; foreach ( $ this -> command_options as $ option ) { if ( $ option [ 0 ] === $ common_param [ 'short_param_name' ] || $ option [ 0 ] === $ common_param [ 'long_param_name' ] ) { if ( ! isset ( $ option [ 1 ] ) ) { $ value = true ; } else { $ value = $ option [ 1 ] ; } break ; } } $ this -> params [ 'parsed_params' ] [ $ common_param [ 'short_param_name' ] ] = $ value ; $ this -> params [ 'parsed_params' ] [ $ common_param [ 'long_param_name' ] ] = $ value ; } }
Parse the input arguments and store them in a class property for later usage.

@internal param array $params Get params.
@return array
Parse the input arguments and store them in a class property for later usage .