vpype_cli.LayerType#
- class LayerType(accept_multiple: bool = False, accept_new: bool = False)#
Interpret values of --layer options.
If accept_multiple == True, comma-separated array of int is accepted or ‘all’. Returns either a list of IDs or LayerType.ALL.
If accept_new == True, ‘new’ is also accepted, in which case returns LayerType.NEW.
None is passed through, which typically means to use the default behaviour.
Methods
Attributes
Methods#
Attributes#
- LayerType.ALL = -2#
- LayerType.NEW = -1#