From 15598724bc57f203f4d413b85694c147917973aa Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 31 Oct 2024 17:40:43 +0100 Subject: [PATCH] fix: only first value --- tiramisu_cmdline_parser/api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tiramisu_cmdline_parser/api.py b/tiramisu_cmdline_parser/api.py index 32a7363..c54ab99 100644 --- a/tiramisu_cmdline_parser/api.py +++ b/tiramisu_cmdline_parser/api.py @@ -604,9 +604,10 @@ class TiramisuCmdlineParser(ArgumentParser): for option_is_not_default in options_is_not_default.values(): self._option_is_not_default(**option_is_not_default) for values in actions.values(): - for value in values: - args, kwargs = value.get() - group.add_argument(*args, **kwargs) +# for value in values: + value = values[0] + args, kwargs = value.get() + group.add_argument(*args, **kwargs) # def _valid_mandatory(self): # pass