src/ShellCommand.php
final protected function updateOption($flag, $enabled, $value = null, $remove = false)
    {
        $shellOption = $this->option($flag);
        $shellOption->enable($enabled);

        if ($shellOption->canHaveValue()) {
            $this->updateOptionValue($shellOption, $value, $remove);
        }

        return $this;
    }
final protected function updateOption($flag, $enabled, $value = null, $remove = false)
    {
        $shellOption = $this->option($flag);
        $shellOption->enable($enabled);

        if ($shellOption->canHaveValue()) {
            $this->updateOptionValue($shellOption, $value, $remove);
        }

        return $this;
    }
final protected function updateOption ( $ flag , $ enabled , $ value = null , $ remove = false ) { $ shellOption = $ this -> option ( $ flag ) ; $ shellOption -> enable ( $ enabled ) ; if ( $ shellOption -> canHaveValue ( ) ) { $ this -> updateOptionValue ( $ shellOption , $ value , $ remove ) ; } return $ this ; }
Update an option.

@param string $flag
@param bool   $enabled
@param bool   $value
@param bool   $remove

@return $this
Update an option .