diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2024-04-24 15:34:12 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2024-04-24 15:34:12 +0200 |
commit | da62ff2362b04861785f94c23947b23054fc3e2e (patch) | |
tree | 43e8764071f7c432c725cf4bba4fc45d51b032d1 | |
parent | 0c7323ae032fe7e1601601f0837ba54539c1a4fa (diff) |
Fix adding arguments for new commands
-rw-r--r-- | lesana/command.py | 2 |
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]) |