comparison example/example.py @ 24:099f270654ae

more wip
author Jeff Hammel <k0scist@gmail.com>
date Sun, 10 May 2015 21:05:24 -0700
parents 6a7fd9f83554
children
comparison
equal deleted inserted replaced
23:6a7fd9f83554 24:099f270654ae
35 def main(args=sys.argv[1:]): 35 def main(args=sys.argv[1:]):
36 """CLI""" 36 """CLI"""
37 37
38 # parse command line options 38 # parse command line options
39 parser = argparse.ArgumentParser(description=__doc__) 39 parser = argparse.ArgumentParser(description=__doc__)
40 options = parser.parse_args(args)
40 41
41 server = simple_server.make_server(host='0.0.0.0', port=int(54321), app=factory()) 42 server = simple_server.make_server(host='0.0.0.0', port=int(54321), app=factory())
42 server.serve_forever() 43 server.serve_forever()
43 44
44 if __name__ == '__main__': 45 if __name__ == '__main__':