LayerType

class LayerType(accept_multiple=False, accept_new=False)

Interpret value 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

__init__

Initialize self.

Attributes

ALL

NEW

__doc__

__module__

Methods

LayerType.__init__(accept_multiple=False, accept_new=False)

Initialize self. See help(type(self)) for accurate signature.

Attributes

LayerType.ALL = -2
LayerType.NEW = -1
LayerType.__doc__ = "\n Interpret value of --layer options.\n\n If `accept_multiple == True`, comma-separated array of int is accepted or 'all'. Returns\n either a list of IDs or `LayerType.ALL`.\n\n If `accept_new == True`, 'new' is also accepted, in which case returns `LayerType.NEW`.\n\n None is passed through, which typically means to use the default behaviour.\n "
LayerType.__module__ = 'vpype.layers'