Skip to content

Fix -y short flag collision between --yaml and --yes (#559)#561

Open
CodersAcademy006 wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
CodersAcademy006:fix/cli-yaml-yes-short-flag-collision
Open

Fix -y short flag collision between --yaml and --yes (#559)#561
CodersAcademy006 wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
CodersAcademy006:fix/cli-yaml-yes-short-flag-collision

Conversation

@CodersAcademy006

Copy link
Copy Markdown

Summary

In RunContext.cli_command (nemo_run/cli/api.py), both --yaml and --yes/--no-confirm claimed the short flag -y, so Click emitted a warning on every invocation. This drops -y from --yaml and keeps it as the conventional alias for --yes.

Closes #559

cc @hemildesai @marcromeyn

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 NVIDIA-NeMo#559

Signed-off-by: Srijan Upadhyay <srjnupadhyay@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RunContext.cli_command assigns the short flag -y to both --yaml and --yes — click warns on every invocation

1 participant