Skip to main content

normalize_args

Function normalize_args 

Source
pub fn normalize_args(args: &[String]) -> Vec<String>
Expand description

Normalize args: detect scenario shorthand where a bare word after the workload file becomes scenario=<name>.

The auto-promotion has to skip the values of space-form flags (--session-path X, --readout Y, etc.) — otherwise the path or value gets misread as a scenario name and ends up as scenario=<path>, which downstream code then materialises as a literal directory at <cwd>/scenario=<path> (the orphaned-dir bug we hit earlier). Use the same list parse_params uses so the two surfaces agree on which flags consume their next token.