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

getUsageHelp() private method

private getUsageHelp ( )
    private function getUsageHelp()
    {
        $commands = $this->sortCommands(CommandLine\Commands::getInstance());
        $out = "usage: %bphrozn%n %g<command>%n [options] [args]\n\n";
        $out .= "Type 'phrozn help <command>' for help on a specific command.\n";
        $out .= "Type 'phrozn ? help' for help on using help.\n";
        $out .= "Type 'phrozn --version' to see the program version and installed plugins.\n";
        $out .= "\nAvailable commands:\n";
        foreach ($commands as $name => $data) {
            $command = $data['command'];
            $out .= '    ' . $name;
            if (null !== $command['aliases']) {
                $out .= ' (' . implode(', ', $command['aliases']) . ')';
            }
            $out .= "\n";
        }
        return $out;
    }