kopia lustrzana https://github.com/inkstitch/inkstitch
11 wiersze
360 B
Python
11 wiersze
360 B
Python
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")
|