private function updateOptionValue(ShellOption $shellOption, $value = null, $remove = false)
    {
        if ($remove) {
            $shellOption->removeValue($value);
        } else {
            $shellOption->addValue($value);
        }
    }