comparison requestdumpster/dumpster.py @ 14:194a66d765ae

print default port
author Jeff Hammel <k0scist@gmail.com>
date Wed, 01 Jun 2016 09:09:28 -0700
parents d329dfdf6099
children d2585c78e70f
comparison
equal deleted inserted replaced
13:0743c37cbd69 14:194a66d765ae
45 45
46 # parse command line arguments 46 # parse command line arguments
47 parser = argparse.ArgumentParser(description=__doc__) 47 parser = argparse.ArgumentParser(description=__doc__)
48 parser.add_argument('-p', '--port', dest='port', 48 parser.add_argument('-p', '--port', dest='port',
49 type=int, default=9555, 49 type=int, default=9555,
50 help="port to serve on") 50 help="port to serve on [DEFAULT: %(default)s]")
51 parser.add_argument('-d', '--directory', dest='directory', 51 parser.add_argument('-d', '--directory', dest='directory',
52 help="directory to output requests to") 52 help="directory to output requests to")
53 options = parser.parse_args() 53 options = parser.parse_args()
54 54
55 # instantiate WSGI app 55 # instantiate WSGI app