public function getCommandOptions($includeBase = true)
    {
        Assert::boolean($includeBase, 'The parameter $includeBase must be a boolean. Got: %s');

        $commandOptions = array_values($this->commandOptions);

        if ($includeBase && $this->baseFormat) {
            // prepend base command options
            $commandOptions = array_merge($this->baseFormat->getCommandOptions(), $commandOptions);
        }

        return $commandOptions;
    }
public function getCommandOptions($includeBase = true)
    {
        Assert::boolean($includeBase, 'The parameter $includeBase must be a boolean. Got: %s');

        $commandOptions = array_values($this->commandOptions);

        if ($includeBase && $this->baseFormat) {
            // prepend base command options
            $commandOptions = array_merge($this->baseFormat->getCommandOptions(), $commandOptions);
        }

        return $commandOptions;
    }
public function getCommandOptions ( $ includeBase = true ) { Assert :: boolean ( $ includeBase , 'The parameter $includeBase must be a boolean. Got: %s' ) ; $ commandOptions = array_values ( $ this -> commandOptions ) ; if ( $ includeBase && $ this -> baseFormat ) { // prepend base command options $ commandOptions = array_merge ( $ this -> baseFormat -> getCommandOptions ( ) , $ commandOptions ) ; } return $ commandOptions ; }
Returns all command options of the format.

@param bool $includeBase Whether to include options of the base format
in the result.

@return CommandOption[] The command options.
Returns all command options of the format .