def main(): config.parse_args(sys.argv) logging.setup(CONF, 'gceapi') server = service.WSGIService('gceapi', max_url_len=16384) service.serve(server) service.wait()
def main(): """Parse options and call the appropriate class/method.""" CONF.register_cli_opt(command_opt) config.parse_args(sys.argv) log.setup(CONF, "gceapi") try: CONF.command.func() except Exception as e: sys.exit("ERROR: %s" % e)