summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-04-24 15:34:12 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-04-24 15:34:12 +0200
commitda62ff2362b04861785f94c23947b23054fc3e2e (patch)
tree43e8764071f7c432c725cf4bba4fc45d51b032d1
parent0c7323ae032fe7e1601601f0837ba54539c1a4fa (diff)
Fix adding arguments for new commands
-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])