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__

Attributes

ALL

NEW

name

the descriptive name of this type

Methods

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

Attributes

LayerType.ALL = -2
LayerType.NEW = -1
LayerType.name: str = 'layer ID'

the descriptive name of this type