comparison wsgintegrate/main.py @ 21:3621afe99a72

STUB: wsgintegrate/main.py
author Jeff Hammel <k0scist@gmail.com>
date Thu, 06 Mar 2014 23:12:55 -0800
parents caf763fc1c7d
children 37b47aedcc3d
comparison
equal deleted inserted replaced
20:caf763fc1c7d 21:3621afe99a72
32 action='store_true', default=False, 32 action='store_true', default=False,
33 help='print .ini format of the configuration') 33 help='print .ini format of the configuration')
34 if len(servers) > 1: 34 if len(servers) > 1:
35 parser.add_option('-s', '--server', dest='server', 35 parser.add_option('-s', '--server', dest='server',
36 choices=servers.keys(), default='wsgiref', 36 choices=servers.keys(), default='wsgiref',
37 help="which WSGI server to use [Choices: {}]".format(', '.join(servers.keys()))) 37 help="which WSGI server to use [Choices: %s]" % ', '.join(servers.keys()))
38 options, args = parser.parse_args(args) 38 options, args = parser.parse_args(args)
39 39
40 # check for single configuration file 40 # check for single configuration file
41 if len(args) != 1: # TODO: could munge multiple configs 41 if len(args) != 1: # TODO: could munge multiple configs
42 parser.print_usage() 42 parser.print_usage()