We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2ba7d0 commit 7711db0Copy full SHA for 7711db0
comfy_cli/cmdline.py
@@ -137,13 +137,14 @@ def entry(
137
# logging.info(f"scan_dir took {end_time - start_time:.2f} seconds to run")
138
139
140
-def validate_commit_and_version(commit: Optional[str], ctx: typer.Context):
+def validate_commit_and_version(commit: Optional[str], ctx: typer.Context) -> Optional[str]:
141
"""
142
Validate that the commit is not specified unless the version is 'nightly'.
143
144
version = ctx.params.get("version")
145
if commit and version != "nightly":
146
raise typer.BadParameter("You can only specify the commit if the version is 'nightly'.")
147
+ return commit
148
149
150
@app.command(help="Download and install ComfyUI and ComfyUI-Manager")
0 commit comments