Mercurial > mozilla > hg > talosnames
changeset 35:88d280049e2f
stub parsing options
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 23 Jul 2012 13:57:14 -0700 |
parents | b51b0d750086 |
children | c945731f06d0 |
files | talosnames/web.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)