[BUG] error: unknown option '--cwd' (using latest version: 1.0.109, release 6 hours ago)
Resolved 💬 4 comments Opened Sep 9, 2025 by 1c7 Closed Sep 9, 2025
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?
claude -p "What file can you see?" \
--allowedTools "Bash,Read" \
--cwd "/Users/zheng-cheng/Desktop/book"
error: unknown option '--cwd'
<img width="793" height="228" alt="Image" src="https://github.com/user-attachments/assets/8fa2e229-cbb2-4807-87c5-e2dbafc9ec5b" />
What Should Happen?
--cwd would not cause any error
Error Messages/Logs
claude -p "What file can you see?" \
--allowedTools "Bash,Read" \
--cwd "/Users/zheng-cheng/Desktop/book"
error: unknown option '--cwd'
Steps to Reproduce
claude -p "What file can you see?" \
--allowedTools "Bash,Read" \
--cwd "/Users/zheng-cheng/Desktop/book"
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
1.0.109
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Warp
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗