* This method is to be used to introspect the input parameters
* before they have been validated. It must be used carefully.
*
- * @param string|array $values The values to look for in the raw parameters (can be an array)
+ * @param string|array $values The values to look for in the raw parameters (can be an array)
+ * @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal
*
* @return bool true if the value is contained in the raw parameters
*/
- public function hasParameterOption($values);
+ public function hasParameterOption($values, $onlyParams = false);
/**
* Returns the value of a raw option (not parsed).
* This method is to be used to introspect the input parameters
* before they have been validated. It must be used carefully.
*
- * @param string|array $values The value(s) to look for in the raw parameters (can be an array)
- * @param mixed $default The default value to return if no result is found
+ * @param string|array $values The value(s) to look for in the raw parameters (can be an array)
+ * @param mixed $default The default value to return if no result is found
+ * @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal
*
* @return mixed The option value
*/
- public function getParameterOption($values, $default = false);
+ public function getParameterOption($values, $default = false, $onlyParams = false);
/**
* Binds the current Input instance with the given arguments and options.