From 99a3da809ed71e5217ddcec68b3d34fbd757735e Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Thu, 21 Apr 2022 12:03:22 -0400 Subject: [PATCH] fix: in `runserver`, only recommend `--mount` once per invocation Previously, `tutor dev runserver --volume=x --volume=y` would log: 'runserver' is deprecated and will be removed in a future release. Use 'start' instead. Bind-mounts can be specified using '-m/--mount'. Bind-mounts can be specified using '-m/--mount'. --- tutor/commands/dev.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tutor/commands/dev.py b/tutor/commands/dev.py index e20d101..657aeef 100644 --- a/tutor/commands/dev.py +++ b/tutor/commands/dev.py @@ -115,6 +115,7 @@ def runserver( for option in options: if option.startswith("-v") or option.startswith("--volume"): depr_warning += " Bind-mounts can be specified using '-m/--mount'." + break fmt.echo_alert(depr_warning) config = tutor_config.load(context.obj.root) if service in ["lms", "cms"]: