# HG changeset patch # User Jeff Hammel # Date 1343077034 25200 # Node ID 88d280049e2f2b81c3ed6948770292085c1d6fbc # Parent b51b0d750086ae8b5c2d5177b114652c66a5064e stub parsing options diff -r b51b0d750086 -r 88d280049e2f talosnames/web.py --- a/talosnames/web.py Mon Jul 23 13:55:17 2012 -0700 +++ b/talosnames/web.py Mon Jul 23 13:57:14 2012 -0700 @@ -4,6 +4,7 @@ web handler for talosnames """ +import optparse import os import pprint import tempita @@ -73,6 +74,10 @@ return _template.substitute(self.data) if __name__ == '__main__': + + parser = optparse.OptionParser() + options, args = parser.parse_args() + from wsgiref import simple_server app = Handler() server = simple_server.make_server(host='0.0.0.0', port=8080, app=app)