aedi: fix handling of argument value evaluated to false

This commit is contained in:
alexey.lysiuk 2022-08-27 10:59:30 +03:00
parent 81a99dd15f
commit 25cde9672e

View file

@ -43,7 +43,7 @@ class CommandLineOptions(dict):
return ArgumentValue()
def __setitem__(self, key, value):
return super().__setitem__(key, ArgumentValue(value))
return super().__setitem__(key, ArgumentValue(value) if value else None)
def to_list(self, rules=MAKE_RULES) -> list:
result = []