private function validate(Getopt $getopt) { if (!$getopt->hasErrors()) { return; } foreach ($getopt->getErrors() as $error) { $this->stdio->exception($error); } $this->showHelp(); exit(Status::USAGE); }