src/Cli.php
public function hasCommand($name = '') {
        if ($name) {
            return array_key_exists($name, $this->commandSchemas);
        } else {
            foreach ($this->commandSchemas as $pattern => $opts) {
                if (strpos($pattern, '*') === false) {
                    return true;
                }
            }
            return false;
        }
    }
public function hasCommand($name = '') {
        if ($name) {
            return array_key_exists($name, $this->commandSchemas);
        } else {
            foreach ($this->commandSchemas as $pattern => $opts) {
                if (strpos($pattern, '*') === false) {
                    return true;
                }
            }
            return false;
        }
    }
public function hasCommand ( $ name = '' ) { if ( $ name ) { return array_key_exists ( $ name , $ this -> commandSchemas ) ; } else { foreach ( $ this -> commandSchemas as $ pattern => $ opts ) { if ( strpos ( $ pattern , '*' ) === false ) { return true ; } } return false ; } }
Determines whether or not the schema has a command.

@param string $name Check for the specific command name.
@return bool Returns true if the schema has a command.
Determines whether or not the schema has a command .