What
Claude Code does a quick scan of the command line before the real argument parser runs, to find the positional prompt. That scan now knows --environment, --pool, --ref, --on-branch, --correlation-id and --forward-home-settings each take a value, so those values are no longer mistaken for your prompt or for another flag's argument.
Details
- All six are real options elsewhere in the build, including the hidden
--forward-home-settings <true|false>and--on-branch/--reffor cloud pool revisions.
Evidence
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up --ref, on CLI reference.
| `--ref <branch>` | With `--environment`, base the new session's checkout on a named ref instead of local `HEAD` | `claude -p "Run the smoke test" --environment ccpool_abc123 --ref main` |cli-reference see the edit
Confirmed since
Anthropic's documentation has since written up --environment, on Write a credential helper.
Set [`inferenceCredentialHelperArgs`](/docs/third-party/claude-desktop/configuration#inferencecredentialhelperargs) to a JSON array of strings to pass arguments to the helper. Claude Desktop passes each entry to the executable as one argum…third-party/claude-desktop/credential-helper see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up --environment, on Write a credential helper.