From 6a69c466bf1b1129c7c59fde554965882c722fad Mon Sep 17 00:00:00 2001 From: lilly Date: Sun, 13 Oct 2024 22:07:34 +0200 Subject: [PATCH] fix argparse usage in irz_ldap thingy --- mafiasi/registration/management/commands/irz_ldap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mafiasi/registration/management/commands/irz_ldap.py b/mafiasi/registration/management/commands/irz_ldap.py index c0ad826..e1208ec 100644 --- a/mafiasi/registration/management/commands/irz_ldap.py +++ b/mafiasi/registration/management/commands/irz_ldap.py @@ -12,8 +12,8 @@ class Command(BaseCommand): def add_arguments(self, parser: ArgumentParser): argg = parser.add_mutually_exclusive_group(required=True) - argg.add_argument("--group", nargs=1, help="Query for a group by gidNumber") - argg.add_argument("--user", nargs=1, help="Query for a user by uid") + argg.add_argument("--group", help="Query for a group by gidNumber") + argg.add_argument("--user", help="Query for a user by uid") def handle(self, *args, **options): if options["group"] is not None: