Permalink
Browse files

Added a docstring to parse_parameters.

  • Loading branch information...
1 parent af0ec77 commit 781f654080ca5cbdddad93d2cb679ccec601ef70 @brosner committed Jul 1, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 bosnowsgi.py
View
@@ -108,6 +108,10 @@ def load_wsgi_server(name, **kwargs):
return WSGIServerProcess(dispatcher, **defaults)
def parse_parameters():
+ """
+ Parses the parameters passed in over the command-line using optparse.
+ Returns a dictionary mapping options to their values.
+ """
params = {}
parser = OptionParser()
parser.add_option("-p", "--port", dest="port")

0 comments on commit 781f654

Please sign in to comment.