From da62ff2362b04861785f94c23947b23054fc3e2e Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Wed, 24 Apr 2024 15:34:12 +0200 Subject: Fix adding arguments for new commands --- lesana/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- cgit v1.2.3