management: Fix recent argument parsing regressions.

Fixes a regression introduced in
fbdf539bf2.
This commit is contained in:
Tim Abbott
2016-10-16 20:31:47 -07:00
parent a5a03c2e0b
commit 3b0b65c2d0
3 changed files with 3 additions and 3 deletions

View File

@@ -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.")

View File

@@ -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',

View File

@@ -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',