public function buildOptions(): array
    {
        $options = [];
        foreach ($this->options as $option => $values) {
            foreach ((array) $values as $value) {
                // Render the option.
                $prefix = strlen($option) !== 1 ? '--' : '-';
                $options[] = $prefix . $option;

                // Render apend the value if the option isn't a flag.
                if ($value !== true) {
                    $options[] = $value;
                }
            }
        }

        return $options;
    }
public function buildOptions(): array
    {
        $options = [];
        foreach ($this->options as $option => $values) {
            foreach ((array) $values as $value) {
                
                $prefix = strlen($option) !== 1 ? '--' : '-';
                $options[] = $prefix . $option;

                
                if ($value !== true) {
                    $options[] = $value;
                }
            }
        }

        return $options;
    }
public function buildOptions ( ) : array { $ options = [ ] ; foreach ( $ this -> options as $ option => $ values ) { foreach ( ( array ) $ values as $ value ) { // Render the option. $ prefix = strlen ( $ option ) !== 1 ? '--' : '-' ; $ options [ ] = $ prefix . $ option ; // Render apend the value if the option isn't a flag. if ( $ value !== true ) { $ options [ ] = $ value ; } } } return $ options ; }
Builds the command line options for use in the Git command.

@return mixed[]
Builds the command line options for use in the Git command .