Fix extra parameters absence

This commit is contained in:
Jerome Lebleu 2014-03-24 15:52:26 +01:00
parent 3fae8bf1ff
commit c95469073a

View file

@ -1061,6 +1061,7 @@ class ActionsMap(object):
arg = parser.add_argument(*names, **argp) arg = parser.add_argument(*names, **argp)
if extra: if extra:
extras[arg.dest] = _get_extra(arg.dest, extra) extras[arg.dest] = _get_extra(arg.dest, extra)
if extras:
parser.set_defaults(_extra=extras) parser.set_defaults(_extra=extras)
# Instantiate parser # Instantiate parser