fixed default values
This commit is contained in:
parent
a3898b14ff
commit
0d9ba64b0d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue