Skip to content

"llm -m model --options" to see model options - #1441

Merged
simonw merged 3 commits into
mainfrom
model-options-shortcut
May 12, 2026
Merged

simonw merged 3 commits into
mainfrom
model-options-shortcut

Conversation

@simonw

@simonw simonw commented May 12, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a --options shortcut to the main llm prompt command path so commands such as llm -m gpt-5.5 --options display the same selected-model option documentation as llm models -m gpt-5.5 --options.

The model option rendering used by llm models list has been factored into shared helpers so both command paths stay byte-for-byte consistent. The shortcut returns before normal prompt execution and avoids creating logs.db for this informational command.

Validation

  • uv run ruff check llm/cli.py tests/test_llm.py
  • uv run pytest -q
  • Compared uv run llm -m gpt-5.5 --options against uv run llm models -m gpt-5.5 --options with diff

@simonw
simonw marked this pull request as ready for review May 12, 2026 15:38
@simonw simonw changed the title [codex] Add prompt options shortcut "llm -m model --options" to see model options May 12, 2026
@simonw
simonw merged commit 74437d3 into main May 12, 2026
16 of 32 checks passed
@simonw
simonw deleted the model-options-shortcut branch May 12, 2026 15:38
simonw added a commit that referenced this pull request May 12, 2026
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.

1 participant