Redaxscript\Console\Command\CommandAbstract::getHelp PHP Method

getHelp() public method

get the help
Since: 3.0.0
public getHelp ( ) : string
return string
    public function getHelp()
    {
        $output = null;
        foreach ($this->_commandArray as $commandKey => $commandValue) {
            $output .= str_pad($commandKey, 30) . $commandValue['description'] . PHP_EOL;
            foreach ($commandValue['argumentArray'] as $argumentKey => $argumentValue) {
                $output .= '  ' . str_pad($argumentKey, 30) . $argumentValue['description'] . PHP_EOL;
                foreach ($argumentValue['optionArray'] as $optionKey => $optionValue) {
                    $output .= '    --' . str_pad($optionKey, 28) . $optionValue['description'] . PHP_EOL;
                }
            }
        }
        return $output;
    }
CommandAbstract