From 0a3185c82c2565f3daa1ed184bb8ff3b2309c1ee Mon Sep 17 00:00:00 2001 From: sko00o Date: Sun, 17 Nov 2024 10:35:44 +0800 Subject: [PATCH] fix: specify commit hash --- comfy_cli/cmdline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comfy_cli/cmdline.py b/comfy_cli/cmdline.py index 6c71c79..37dbd61 100644 --- a/comfy_cli/cmdline.py +++ b/comfy_cli/cmdline.py @@ -137,13 +137,14 @@ def entry( # logging.info(f"scan_dir took {end_time - start_time:.2f} seconds to run") -def validate_commit_and_version(commit: Optional[str], ctx: typer.Context): +def validate_commit_and_version(commit: Optional[str], ctx: typer.Context) -> Optional[str]: """ Validate that the commit is not specified unless the version is 'nightly'. """ version = ctx.params.get("version") if commit and version != "nightly": raise typer.BadParameter("You can only specify the commit if the version is 'nightly'.") + return commit @app.command(help="Download and install ComfyUI and ComfyUI-Manager")