add float support
This commit is contained in:
parent
c09b3c0844
commit
b7bb7ebe6f
1 changed files with 2 additions and 0 deletions
|
@ -545,6 +545,8 @@ class TiramisuCmdlineParser(ArgumentParser):
|
||||||
elif option.type() == 'choice' and not option.isfollower():
|
elif option.type() == 'choice' and not option.isfollower():
|
||||||
# do not manage choice with argparse there is problem with integer problem
|
# do not manage choice with argparse there is problem with integer problem
|
||||||
kwargs['choices'] = get_choice_list(obj, properties, False)
|
kwargs['choices'] = get_choice_list(obj, properties, False)
|
||||||
|
elif option.type() == 'float':
|
||||||
|
kwargs['type'] = float
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
actions.setdefault(option.name(), []).append(kwargs)
|
actions.setdefault(option.name(), []).append(kwargs)
|
||||||
|
|
Loading…
Reference in a new issue