management: Use required kwargs in add_realm_args.

This makes management commands more readable, since one doesn't need
to know details of how the library works to read based code.
This commit is contained in:
Tim Abbott
2021-05-10 12:29:25 -07:00
parent 55f4996f16
commit 2c01354569
21 changed files with 21 additions and 21 deletions

View File

@@ -9,7 +9,7 @@ class Command(ZulipBaseCommand):
help = """Script to scrub a deactivated realm."""
def add_arguments(self, parser: ArgumentParser) -> None:
self.add_realm_args(parser, True)
self.add_realm_args(parser, required=True)
def handle(self, *args: Any, **options: str) -> None:
realm = self.get_realm(options)