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

ALL

NEW

name

the descriptive name of this type

Parameters
  • accept_multiple (bool) --

  • accept_new (bool) --

Methods#

Attributes#

LayerType.ALL = -2#
LayerType.NEW = -1#
LayerType.name: str = 'lid'#

the descriptive name of this type