src/Application/Process/ProcessBuilder.php
public function option(string $option, ?string $value = null): ProcessBuilder
    {
        if ($option === '') {
            return $this;
        }

        if (strpos($option, '-') !== 0) {
            $option = sprintf('--%s', $option);
        }

        $this->arguments[] = $option;

        if ($value !== null) {
            $this->arguments[] = $value;
        }

        return $this;
    }
public function option(string $option, ?string $value = null): ProcessBuilder
    {
        if ($option === '') {
            return $this;
        }

        if (strpos($option, '-') !== 0) {
            $option = sprintf('--%s', $option);
        }

        $this->arguments[] = $option;

        if ($value !== null) {
            $this->arguments[] = $value;
        }

        return $this;
    }
public function option ( string $ option , ? string $ value = null ) : ProcessBuilder { if ( $ option === '' ) { return $ this ; } if ( strpos ( $ option , '-' ) !== 0 ) { $ option = sprintf ( '--%s' , $ option ) ; } $ this -> arguments [ ] = $ option ; if ( $ value !== null ) { $ this -> arguments [ ] = $ value ; } return $ this ; }
Adds an option

@param string      $option The command option
@param string|null $value  The option value

@return ProcessBuilder
Adds an option