vpype_cli.FloatType¶
- class FloatType(*args, **kwargs)¶
click.ParamType
sub-class to automatically perform property substitution on user input.Example:
>>> import click >>> import vpype_cli >>> import vpype >>> @vpype_cli.cli.command(group="my commands") ... @click.argument("number", type=vpype_cli.FloatType()) ... @vpype_cli.generator ... def my_command(number: float): ... pass
Methods
Attributes
the descriptive name of this type