Make service argument optional so that you can actually use all services

This commit is contained in:
Steve Pulec 2013-12-30 13:29:57 -05:00
parent b9538f74dd
commit f0c6d1124c

View File

@ -82,7 +82,11 @@ def main(argv=sys.argv[1:]):
parser = argparse.ArgumentParser()
# Keep this for backwards compat
parser.add_argument("service", type=str)
parser.add_argument(
"service",
type=str,
nargs='?',
default=None)
parser.add_argument(
'-H', '--host', type=str,
help='Which host to bind',