fixed default values

This commit is contained in:
Christoph Stahl 2017-05-08 14:23:19 +02:00
parent a3898b14ff
commit 0d9ba64b0d

View file

@ -24,7 +24,7 @@ def parse_argument(name, json, action):
return action.type_function(argument)
except (KeyError, ValueError):
if name.endswith("[]"):
return None
return action.on_none
else:
return parse_argument(name + "[]", json, action)