add float support

This commit is contained in:
Emmanuel Garette 2020-03-20 22:19:10 +01:00 committed by Emmanuel Garette
parent c09b3c0844
commit b7bb7ebe6f

View file

@ -545,6 +545,8 @@ class TiramisuCmdlineParser(ArgumentParser):
elif option.type() == 'choice' and not option.isfollower():
# do not manage choice with argparse there is problem with integer problem
kwargs['choices'] = get_choice_list(obj, properties, False)
elif option.type() == 'float':
kwargs['type'] = float
else:
pass
actions.setdefault(option.name(), []).append(kwargs)