MrClay\Cli::getErrorReport PHP Method

getErrorReport() public method

Get a short list of errors with options
public getErrorReport ( ) : string
return string
    public function getErrorReport()
    {
        if (empty($this->errors)) {
            return '';
        }
        $r = "Some arguments did not pass validation:\n";
        foreach ($this->errors as $letter => $arr) {
            $r .= "  {$letter} : " . implode(', ', $arr) . "\n";
        }
        $r .= "\n";
        return $r;
    }