summaryrefslogtreecommitdiff
path: root/lib/elements/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/elements/element.py')
-rw-r--r--lib/elements/element.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py
index f1e6eb36..8e66db58 100644
--- a/lib/elements/element.py
+++ b/lib/elements/element.py
@@ -514,11 +514,14 @@ class EmbroideryElement(object):
return len(self.get_commands(command)) > 0
@cache
- def get_command(self, command: str) -> Optional[Command]:
+ def get_command(self, command: str, multiple: bool = False) -> Optional[Command]:
commands = self.get_commands(command)
if commands:
- return commands[0]
+ if multiple:
+ return commands
+ else:
+ return commands[0]
else:
return None