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,7 +1061,8 @@ 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)
parser.set_defaults(_extra=extras) if extras:
parser.set_defaults(_extra=extras)
# Instantiate parser # Instantiate parser
top_parser = self._parser_class() top_parser = self._parser_class()