src/mako/reactor/Reactor.php
protected function unknownCommand(string $command): int
	{
		$message = 'Unknown command [ ' . $command . ' ].';

		if(($suggestion = $this->suggest($command, array_keys($this->commands))) !== null)
		{
			$message .= ' Did you mean [ ' . $suggestion . ' ]?';
		}

		$this->output->writeLn('<red>' . $message . '</red>');

		$this->listCommands();

		return CommandInterface::STATUS_ERROR;
	}
protected function unknownCommand(string $command): int
	{
		$message = 'Unknown command [ ' . $command . ' ].';

		if(($suggestion = $this->suggest($command, array_keys($this->commands))) !== null)
		{
			$message .= ' Did you mean [ ' . $suggestion . ' ]?';
		}

		$this->output->writeLn('<red>' . $message . '</red>');

		$this->listCommands();

		return CommandInterface::STATUS_ERROR;
	}
protected function unknownCommand ( string $ command ) : int { $ message = 'Unknown command [ ' . $ command . ' ].' ; if ( ( $ suggestion = $ this -> suggest ( $ command , array_keys ( $ this -> commands ) ) ) !== null ) { $ message .= ' Did you mean [ ' . $ suggestion . ' ]?' ; } $ this -> output -> writeLn ( '<red>' . $ message . '</red>' ) ; $ this -> listCommands ( ) ; return CommandInterface :: STATUS_ERROR ; }
Displays error message for unknown commands.

@param  string $command Command
@return int
Displays error message for unknown commands .