Neos\Flow\Command\HelpCommandController::errorCommand PHP Метод

errorCommand() публичный Метод

Displays an error message
public errorCommand ( Neos\Flow\Mvc\Exception\CommandException $exception ) : void
$exception Neos\Flow\Mvc\Exception\CommandException
Результат void
    public function errorCommand(CommandException $exception)
    {
        $this->outputLine($exception->getMessage());
        if ($exception instanceof AmbiguousCommandIdentifierException) {
            $this->outputLine('Please specify the complete command identifier. Matched commands:');
            $this->displayShortHelpForCommands($exception->getMatchingCommands());
        }
        $this->outputLine();
        $this->outputLine('Enter "%s help" for an overview of all available commands', [$this->getFlowInvocationString()]);
        $this->outputLine('or "%s help <commandIdentifier>" for a detailed description of the corresponding command.', [$this->getFlowInvocationString()]);
    }