Skip to main content

dialect_from_args

Function dialect_from_args 

Source
pub fn dialect_from_args<I: IntoIterator<Item = String>>(args: I) -> Dialect
Expand description

Parse the --agent <id> flag from argv, defaulting to Claude Code.

Unknown ids fall back to Claude with a warning rather than failing — a misconfigured hook should still guard, not crash the agent.