Skip to main content

parse_scatter_options

Function parse_scatter_options 

Source
pub fn parse_scatter_options(args: &ToolArgs) -> Result<ScatterOptions, String>
Expand description

Parse scatter options from tool args.

A flag key present in args.named with a value of the wrong type is a loud Err, never a silent fall-back to the default — scatter --limit five must not quietly run at the default limit, and scatter --as 42 must not quietly bind $ITEM. (An absent or unresolved flag falls back to a bare boolean earlier, at the pipeline arg-binding layer — that lenient path is unrelated and untouched here.)