handle(); } protected function _init() { // nothing yet //die('in init'); } protected function _preHandle() { $optParser = new Zend_Tool_Framework_Client_Cli_ArgumentParser($_SERVER['argv'], $this->_request, $this->_response); $optParser->parse(); } protected function _postHandle() { if ($this->_response->isException()) { echo PHP_EOL . 'An error has occured:' . PHP_EOL; echo $this->_response->getException()->getMessage() . PHP_EOL; } echo $this->_response->getContent() . PHP_EOL; } }