summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lesana/command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lesana/command.py b/lesana/command.py
index 2d61238..64633fb 100644
--- a/lesana/command.py
+++ b/lesana/command.py
@@ -24,7 +24,7 @@ class Command(hazwaz.Command):
def add_arguments(self, parser: argparse.ArgumentParser):
# compatibility with the old way to add arguments: for new
# commands override add_arguments directly
- for arg in self.arguments:
+ for arg in getattr(self, "arguments", []):
parser.add_argument(*arg[0], **arg[1])