public function getOption(string $key)
    {
        if (array_key_exists($key, $this->options)) {
            return $this->options[$key];
        }

        throw new Exception('Invalid option key "' . $key . '".', Exception::INVALID_OPTION);
    }