src/Cli.php
public function hasOptions($command = '') {
        if ($command) {
            $def = $this->getSchema($command);
            return $this->hasOptionsDef($def);
        } else {
            foreach ($this->commandSchemas as $pattern => $def) {
                if ($this->hasOptionsDef($def)) {
                    return true;
                }
            }
        }
        return false;
    }
public function hasOptions($command = '') {
        if ($command) {
            $def = $this->getSchema($command);
            return $this->hasOptionsDef($def);
        } else {
            foreach ($this->commandSchemas as $pattern => $def) {
                if ($this->hasOptionsDef($def)) {
                    return true;
                }
            }
        }
        return false;
    }
public function hasOptions ( $ command = '' ) { if ( $ command ) { $ def = $ this -> getSchema ( $ command ) ; return $ this -> hasOptionsDef ( $ def ) ; } else { foreach ( $ this -> commandSchemas as $ pattern => $ def ) { if ( $ this -> hasOptionsDef ( $ def ) ) { return true ; } } } return false ; }
Determines whether a command has options.

@param string $command The name of the command or an empty string for any command.
@return bool Returns true if the command has options. False otherwise.
Determines whether a command has options .