Add comments for optional argparse positional argument

This commit is contained in:
Steve Pulec 2013-12-30 13:32:07 -05:00
parent f0c6d1124c
commit 5e7936123c

View File

@ -85,7 +85,7 @@ def main(argv=sys.argv[1:]):
parser.add_argument(
"service",
type=str,
nargs='?',
nargs='?', # http://stackoverflow.com/a/4480202/731592
default=None)
parser.add_argument(
'-H', '--host', type=str,