Skip to main content

parse_command_ref_with_agent_surface_from

Function parse_command_ref_with_agent_surface_from 

Source
pub fn parse_command_ref_with_agent_surface_from<T, I, R, F>(
    spec: &ToolSpec,
    argv: I,
    run: F,
) -> Result<AgentDispatch<R>, Error>
Expand description

Parse argv and hand the typed CLI to a borrowed callback when parsing succeeds.

ยงErrors

Returns a clap error when parsing fails.