claude-code - 💡(How to fix) Fix [FEATURE] display current values when no input given for --model [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49587Fetched 2026-04-17 08:36:56
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Error Message

Would be nice for claude --model to return the current model instead of giving an error about a missing parameter.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Would be nice for claude --model to return the current model instead of giving an error about a missing parameter.

Proposed Solution

claude --model Opus ✔ Opus 4.6 · Most capable for complex work

Alternative Solutions

No response

Priority

Low - Nice to have

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Modify the claude --model command to return the current model by default instead of requiring a parameter.

Guidance

  • Review the current implementation of the claude --model command to understand why it requires a parameter and how it handles the absence of one.
  • Consider adding an optional parameter to the command, allowing it to return the current model when no parameter is provided.
  • Update the command's documentation to reflect the new behavior and ensure it aligns with the proposed solution.
  • Test the modified command with various scenarios, including with and without the parameter, to ensure it behaves as expected.

Example

# Proposed usage
claude --model  # Returns the current model

# Current usage (for comparison)
claude --model <model_name>  # Returns the specified model

Notes

The exact implementation details are not provided, so the guidance is focused on the general approach to resolving the issue.

Recommendation

Apply workaround: Modify the claude --model command to return the current model by default, as this aligns with the proposed solution and seems to be a low-priority but nice-to-have feature.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] display current values when no input given for --model [1 participants]