Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

fill_memcached_caches: Document possible arguments to --cache.

Alex Vandiver3d66dd9eeb8b
diff --git a/zerver/management/commands/fill_memcached_caches.py b/zerver/management/commands/fill_memcached_caches.py
index 987c46cf5dd..3972611a13d 100644
--- a/zerver/management/commands/fill_memcached_caches.py
+++ b/zerver/management/commands/fill_memcached_caches.py
@@ -8,7 +8,9 @@ from zerver.lib.cache_helpers import cache_fillers, fill_remote_cache
class Command(BaseCommand):
def add_arguments(self, parser: ArgumentParser) -> None:
- parser.add_argument("--cache", help="Populate the memcached cache of messages.")
+ parser.add_argument(
+ "--cache", help="Populate one specific cache", choices=cache_fillers.keys()
+ )
def handle(self, *args: Any, **options: Optional[str]) -> None:
if options["cache"] is not None: