Remove nargs=1 for --debug-flag

Otherwisse we get [['foo'], ['bar']] from argparse...
This commit is contained in:
Florian Bruhin 2017-04-11 21:26:23 +02:00
parent 20b17f3fb1
commit c47da15bb1

View File

@ -116,7 +116,7 @@ def get_argparser():
nargs=1, action='append')
debug.add_argument('--debug-flag', type=debug_flag_error, default=[],
help="Pass name of debugging feature to be turned on.",
nargs=1, action='append', dest='debug_flags')
action='append', dest='debug_flags')
parser.add_argument('command', nargs='*', help="Commands to execute on "
"startup.", metavar=':command')
# URLs will actually be in command