mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
management: Fix recent argument parsing regressions.
Fixes a regression introduced in
fbdf539bf2.
This commit is contained in:
@@ -7,7 +7,7 @@ from django.core.management.base import BaseCommand
|
|||||||
from zerver.lib.cache_helpers import fill_remote_cache, cache_fillers
|
from zerver.lib.cache_helpers import fill_remote_cache, cache_fillers
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
def parse_arguments(self, parser):
|
def add_arguments(self, parser):
|
||||||
# type: (ArgumentParser) -> None
|
# type: (ArgumentParser) -> None
|
||||||
parser.add_argument('--cache', dest="cache", default=None,
|
parser.add_argument('--cache', dest="cache", default=None,
|
||||||
help="Populate the memcached cache of messages.")
|
help="Populate the memcached cache of messages.")
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ def create_users(name_list, bot_type=None):
|
|||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
help = "Populate an initial database for Zulip Voyager"
|
help = "Populate an initial database for Zulip Voyager"
|
||||||
|
|
||||||
def parse_arguments(self, parser):
|
def add_arguments(self, parser):
|
||||||
# type: (ArgumentParser) -> None
|
# type: (ArgumentParser) -> None
|
||||||
parser.add_argument('--extra-users',
|
parser.add_argument('--extra-users',
|
||||||
dest='extra_users',
|
dest='extra_users',
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ from zerver.models import get_realm
|
|||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
help = "Log out all users."
|
help = "Log out all users."
|
||||||
|
|
||||||
def parse_arguments(self, parser):
|
def add_arguments(self, parser):
|
||||||
# type: (ArgumentParser) -> None
|
# type: (ArgumentParser) -> None
|
||||||
parser.add_argument('--realm',
|
parser.add_argument('--realm',
|
||||||
dest='realm',
|
dest='realm',
|
||||||
|
|||||||
Reference in New Issue
Block a user