Skip to main content

parse_tool_list

Function parse_tool_list 

Source
pub fn parse_tool_list(raw: &str) -> Result<Vec<String>>
Expand description

Parse a user-supplied tool list (comma-separated, whitespace-tolerant) into a vector of canonical names.

Returns an error if any entry does not match a known tool — we never silently drop typos because the failure mode (“my filter didn’t work”) is hard to debug.

The error message lists every accepted name so the user can see exactly what’s valid.