Moosh\MooshCommand::getArgumentsHelp PHP Method

getArgumentsHelp() protected method

Can be overwritten by child classes to provide custom description.
protected getArgumentsHelp ( )
    protected function getArgumentsHelp()
    {
        if (!count($this->argumentNames)) {
            return '';
        }
        $ret = "\n\nARGUMENTS:";
        $ret .= "\n\t";
        $ret .= implode(' ', $this->argumentNames);
        if (count($this->argumentNames) < $this->maxArguments) {
            $ret .= " ...\n";
        }
        return $ret;
    }

Usage Example

Example #1
0
 protected function getArgumentsHelp()
 {
     $help = parent::getArgumentsHelp();
     $help .= "\n\n";
     $help .= "Check moodledata files for coruption.";
     return $help;
 }
All Usage Examples Of Moosh\MooshCommand::getArgumentsHelp