From f47516b48b0fff530f170e6f99d4c87ee9bda36a Mon Sep 17 00:00:00 2001 From: Srijan Upadhyay Date: Wed, 15 Jul 2026 00:53:36 +0530 Subject: [PATCH] Fix -y short flag collision between --yaml and --yes RunContext.cli_command bound -y to both --yaml and --yes/--no-confirm, so Click emitted a warning on every invocation. Drop -y from --yaml, keeping -y as the conventional alias for --yes. Closes #559 Signed-off-by: Srijan Upadhyay --- nemo_run/cli/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nemo_run/cli/api.py b/nemo_run/cli/api.py index e05b921f..6f0fe35e 100644 --- a/nemo_run/cli/api.py +++ b/nemo_run/cli/api.py @@ -891,7 +891,7 @@ def command( None, "--load", "-l", help="Load a factory from a directory" ), yaml: Optional[str] = typer.Option( - None, "--yaml", "-y", help="Path to a YAML file to load" + None, "--yaml", help="Path to a YAML file to load" ), repl: bool = typer.Option(False, "--repl", "-r", help="Enter interactive mode"), detach: bool = typer.Option(False, "--detach", help="Detach from the run"),