public function checkCommandOptions()
    {
        foreach ($this->commandOptions as $option) {
            if ($option->isFlagOption()) {
                $parameters = $this->flagOptions;
            } else {
                $parameters = $this->options;
            }
            $option->addParameters($parameters);

            if ($option->isValueRequired() && $option->hasBeenProvided() && !$option->getValue()) {
                if ($option->isFlagOption()) {
                    $message = "Option '-{$option->getName()}' requires a value, which is not provided.";
                } else {
                    $message = "Option '--{$option->getName()}' requires a value, which is not provided.";
                }
                throw new \Parable\Console\Exception($message);
            }
        }
    }
public function checkCommandOptions()
    {
        foreach ($this->commandOptions as $option) {
            if ($option->isFlagOption()) {
                $parameters = $this->flagOptions;
            } else {
                $parameters = $this->options;
            }
            $option->addParameters($parameters);

            if ($option->isValueRequired() && $option->hasBeenProvided() && !$option->getValue()) {
                if ($option->isFlagOption()) {
                    $message = "Option '-{$option->getName()}' requires a value, which is not provided.";
                } else {
                    $message = "Option '--{$option->getName()}' requires a value, which is not provided.";
                }
                throw new \Parable\Console\Exception($message);
            }
        }
    }
public function checkCommandOptions ( ) { foreach ( $ this -> commandOptions as $ option ) { if ( $ option -> isFlagOption ( ) ) { $ parameters = $ this -> flagOptions ; } else { $ parameters = $ this -> options ; } $ option -> addParameters ( $ parameters ) ; if ( $ option -> isValueRequired ( ) && $ option -> hasBeenProvided ( ) && ! $ option -> getValue ( ) ) { if ( $ option -> isFlagOption ( ) ) { $ message = "Option '-{$option->getName()}' requires a value, which is not provided." ; } else { $ message = "Option '--{$option->getName()}' requires a value, which is not provided." ; } throw new \ Parable \ Console \ Exception ( $ message ) ; } } }
Checks the options set against the parameters set. Takes into account whether an option is required
to be passed or not, or a value is required if it's passed, or sets the defaultValue if given and necessary.

@throws \Parable\Console\Exception
Checks the options set against the parameters set . Takes into account whether an option is required to be passed or not or a value is required if it s passed or sets the defaultValue if given and necessary .