add float support
This commit is contained in:
parent
505af25995
commit
c13da02553
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue