sys.exit(0) def main(): try: opts, args = getopt.getopt(sys.argv[1:], "c:d:p:") except getopt.GetoptError, err: print str(err) usage() opts = dict(opts) # Enable debug mode if '-d' in opts: import misc misc.options_load() shopts = misc.options() if opts['-d'] == 'all': shopts["debug"] = DEBUG_TYPES else: shopts["debug"] = opts['-d'].split(",") if '-p' in opts: import cProfile cProfile.run('sealhunter.start_sealhunter()', opts['-p']) else: config = None if '-c' in opts: config = opts['-c'] sealhunter.start_sealhunter(config)