Skip to content

Commit

Permalink
Rename --warm-cache to --warm
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 11, 2021
1 parent cd856da commit 79f27ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions panel/command/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
))
)

Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 79f27ed

Please sign in to comment.