code: public function getOption($name) {
          if(!$this->options->has($name))
              throw new \InvalidArgumentException("Option '$name' is not defined");
  
          return $this->options->get($name);
      }
docs: {@inheritdoc}