Values that start with a dash or look like URLs are now passed safely as --flag=value.
What's wrong with this entry?
When Claude Code rebuilds a command line, a value that starts with -, looks like a scheme:// URL, or contains a NUL byte is now written as --flag=value instead of as two separate arguments, so it cannot be mistaken for a flag of its own.
- Replaces an older check that only looked at whether the value started with
-. - The same helper is used when reconstructing
--modelin teammate and agent launch commands.
--model
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.221
CLI argument rewriting handles values that start with a dash
Both mention argument
-
v2.1.221
Respawn flags with dash-leading values are passed as --flag=value
Both mention argument
-
v2.1.233
Custom slash-command arguments are no longer re-expanded
Both mention argument