/** * Print an error to the STDOUT and exit the script. * * @param string $error */ public function printError($error){ CLI::PrintError('ERROR: ' . $error); $this->printUsage(); exit; }