From 86fc3112771487d46b089d300b3258273c9fa8fa Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 9 Apr 2020 07:52:17 +0200 Subject: [PATCH] if no value set for a choose, display no value --- tiramisu_cmdline_parser/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tiramisu_cmdline_parser/api.py b/tiramisu_cmdline_parser/api.py index 3b64696..80a8eb1 100644 --- a/tiramisu_cmdline_parser/api.py +++ b/tiramisu_cmdline_parser/api.py @@ -114,6 +114,7 @@ class TiramisuNamespace(Namespace): except ValueError as err: if option.option.type() == 'choice': values = option.value.list() + display_value = '' if isinstance(true_value, list): for val in value: if val not in values: