mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
Add settings option to ClaudeCodeOptions
Expose --settings CLI flag through ClaudeCodeOptions to allow specifying custom settings configuration path. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
472aa23aae
commit
b1c106be63
2 changed files with 4 additions and 0 deletions
|
|
@ -118,6 +118,9 @@ class SubprocessCLITransport(Transport):
|
|||
if self._options.resume:
|
||||
cmd.extend(["--resume", self._options.resume])
|
||||
|
||||
if self._options.settings:
|
||||
cmd.extend(["--settings", self._options.settings])
|
||||
|
||||
if self._options.mcp_servers:
|
||||
cmd.extend(
|
||||
["--mcp-config", json.dumps({"mcpServers": self._options.mcp_servers})]
|
||||
|
|
|
|||
|
|
@ -127,3 +127,4 @@ class ClaudeCodeOptions:
|
|||
model: str | None = None
|
||||
permission_prompt_tool_name: str | None = None
|
||||
cwd: str | Path | None = None
|
||||
settings: str | None = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue