[fix] Do not append empty argument on extra argument parsing

This commit is contained in:
Jérôme Lebleu 2014-06-02 23:07:57 +02:00
parent 594a1a3c32
commit 8f486d9b65

View file

@ -290,7 +290,8 @@ class ExtraArgumentParser(object):
arg_value = parser(extra_value, arg_name, arg_value)
# Update argument value
args[arg_name] = arg_value
if arg_value is not None:
args[arg_name] = arg_value
return args