changeset 24:bdb005ae848b

example/persona.py
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 26 Dec 2013 20:06:49 -0800
parents 21124b238feb
children e5efb021a8e6
files example/persona.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/example/persona.py	Thu Dec 26 20:04:08 2013 -0800
+++ b/example/persona.py	Thu Dec 26 20:06:49 2013 -0800
@@ -17,8 +17,12 @@
 
     usage = '%prog [options]'
     parser = optparse.OptionParser(usage=usage, description=__doc__)
-    parser
+    parser.add_option('-p', '--port', dest='port',
+                      type='int', default=8123,
+                      help="port to serve on")
     options, args = parser.parse_args(args)
 
+    
+
 if __name__ == '__main__':
     main()