Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Fix(llm-cli): Ensure script exits after displaying help message#13329

Open
DealsBeam wants to merge 1 commit intointel:mainfrom
DealsBeam:fix-llm-cli-help-exit
Open

Fix(llm-cli): Ensure script exits after displaying help message#13329
DealsBeam wants to merge 1 commit intointel:mainfrom
DealsBeam:fix-llm-cli-help-exit

Conversation

@DealsBeam
Copy link
Copy Markdown

The llm-cli script did not exit after displaying the help message when run with the -h or --help flags. This caused the script to continue execution and display an "Invalid model_family" error.

This commit adds an exit 0 command after the display_help function is called, ensuring that the script exits gracefully after printing the help message.

A new test case has been added to python/llm/test/cli/test_cli.py to verify that the fix is working correctly and to prevent future regressions.

The `llm-cli` script did not exit after displaying the help message when run with the `-h` or `--help` flags. This caused the script to continue execution and display an "Invalid model_family" error.

This commit adds an `exit 0` command after the `display_help` function is called, ensuring that the script exits gracefully after printing the help message.

A new test case has been added to `python/llm/test/cli/test_cli.py` to verify that the fix is working correctly and to prevent future regressions.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant