Skip to main content

collect_repeated_flag

Function collect_repeated_flag 

Source
pub fn collect_repeated_flag(args: &[String], name: &str) -> Vec<String>
Expand description

Collect every occurrence of a repeatable flag (e.g. --trace=<spec> or trace=<spec>) from a raw arg list. Returns the values in order of appearance — parse_params collapses repeats into a HashMap, so this is the escape hatch for repeatable args.

Accepts both --name=value and name=value shapes for symmetry with the rest of nmbrs’s arg surface.