original_string: 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);
              }
          }
      }
code: 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);
              }
          }
      }
code_tokens: 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 ) ; } } }
docstring: 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
docstring_tokens: 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 .