[BUG] CLI reports unknown option '--enable-lsp-logging'
Resolved 💬 3 comments Opened Jan 8, 2026 by coygeek Closed Jan 10, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I am attempting to debug LSP issues by enabling verbose logging as described in the documentation (CLI Reference). However, when running the command, the CLI exits immediately with an error stating the option is unknown.
What Should Happen?
Claude Code should start the interactive session with verbose LSP logging enabled, writing logs to ~/.claude/debug/.
Error Messages/Logs
error: unknown option '--enable-lsp-logging'
Steps to Reproduce
- Open terminal.
- Run the command:
claude --enable-lsp-logging - Observe the immediate exit and error message.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.1
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
I have confirmed in the documentation that --enable-lsp-logging is listed as a valid flag, but the CLI does not recognize it.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗