Phrozn\Runner\CommandLine\Callback\Help::execute PHP Method

execute() public method

Executes the callback action
public execute ( ) : string
return string
    public function execute()
    {
        $out = '';
        $topic = isset($this->getParseResult()->command->args['topic']) ? $this->getParseResult()->command->args['topic'] : null;
        if (null === $topic) {
            $out = $this->getUsageHelp();
        } else {
            $out = $this->getTopicHelp($topic);
        }
        $this->out($this->getHeader());
        $this->out($out);
        $this->out($this->getFooter());
    }