Skip to content

Commit

Permalink
Fix create_user command (#263)
Browse files Browse the repository at this point in the history
I'm not sure why we were setting `nargs` and `const`. Setting `required` seems much more sensible.
Resolves #260
  • Loading branch information
thebeanogamer authored and 0xAda committed Sep 26, 2024
1 parent 1904086 commit f8d1fca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ractf/management/commands/create_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class Command(BaseCommand):
def add_arguments(self, parser: CommandParser) -> None:
parser.add_argument("username", type=str)

parser.add_argument("--email", nargs=1, const="", type=str)
parser.add_argument("--password", nargs=1, const="", type=str)
parser.add_argument("--email", type=str)
parser.add_argument("--password", type=str)

parser.add_argument("--bot", action="store_true", help="Mark the user as a bot")
parser.add_argument("--visible", action="store_true", help="Make the user visible")
Expand Down

0 comments on commit f8d1fca

Please sign in to comment.