Add comments for optional argparse positional argument
This commit is contained in:
parent
f0c6d1124c
commit
5e7936123c
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue