summaryrefslogtreecommitdiff
path: root/lib/extensions/commands.py
blob: 86e291fd541cfc1abc875d9bd3cb13897ffc6f5b (plain)
1
2
3
4
5
6
7
8
9
10
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.OptionParser.add_option("--%s" % command, type="inkbool")