public function consumeOption(string $name)
    {
        $this->validateName($name);

        if (!array_key_exists($name, $this->config)) {
            return null;
        }
        $value = $this->config[$name];

        $this->flushOption($name);

        return $value;
    }