pho\Console\Console::printHelp PHP Method

printHelp() private method

Outputs the help text, as required when the --help/-h flag is used. It's done by iterating over $this->availableOptions.
private printHelp ( )
    private function printHelp()
    {
        $this->writeLn("Usage: pho [options] [files]\n");
        $this->writeLn("Options\n");
        // Loop over availableOptions, building the necessary input for
        // ConsoleFormatter::alignText()
        $options = [];
        foreach ($this->availableOptions as $name => $optionInfo) {
            $row = [$optionInfo[1], $optionInfo[0]];
            $row[] = isset($optionInfo[3]) ? "<{$optionInfo[3]}>" : '';
            $row[] = $optionInfo[2];
            $options[] = $row;
        }
        $pad = str_repeat(' ', 3);
        foreach ($this->formatter->alignText($options, $pad) as $line) {
            $this->writeLn($pad . $line);
        }
    }