blob: 19b85e6d3545c00d658c9ea1cfcd6b7208ba9fc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from inkex import Boolean
from .base import InkstitchExtension
class CommandsExtension(InkstitchExtension):
"""Base class for extensions that manipulate commands."""
def __init__(self, *args, **kwargs):
InkstitchExtension.__init__(self, *args, **kwargs)
for command in self.COMMANDS:
self.arg_parser.add_argument("--%s" % command, type=Boolean)
|