public static function getOpts() { try { $autoloader = Zend_Loader_Autoloader::getInstance(); $opts = new Zend_Console_Getopt(array('help|h' => 'Displays usage information.', 'overwrite|o' => 'Overwrite any existing config files.', 'preserve|p' => 'Keep any existing config files.', 'no-db|n' => 'Turn off database install.', 'reinstall|r' => 'Force a fresh install of this Airtime Version', 'webonly|w' => 'Install only web files')); $opts->parse(); } catch (Zend_Console_Getopt_Exception $e) { print $e->getMessage() . PHP_EOL; AirtimeInstall::printUsage($opts); return NULL; } return $opts; }