From 79f27ed912c000e59f13fc58c3811a57d206927c Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Thu, 11 Feb 2021 12:19:38 +0100 Subject: [PATCH] Rename --warm-cache to --warm --- panel/command/serve.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panel/command/serve.py b/panel/command/serve.py index 4d592974d8c..00155d1c76d 100644 --- a/panel/command/serve.py +++ b/panel/command/serve.py @@ -113,9 +113,9 @@ class Serve(_BkServe): help = "The length of the session history to record.", default = 0 )), - ('--warm-cache', dict( + ('--warm', dict( action = 'store_true', - help = "Whether to execute scripts on load to warm up cache" + help = "Whether to execute scripts on startup to warm up the server." )) ) @@ -148,7 +148,7 @@ def customize_kwargs(self, args, server_kwargs): with edit_readonly(state): state.base_url = urljoin('/', prefix) - if args.warm_cache: + if args.warm: argvs = {f: args.args for f in files} applications = build_single_handler_applications(files, argvs) for app in applications.values():