pub fn without_tokens(
arguments: &[OsString],
offset: usize,
removed: &[usize],
) -> Vec<OsString>Expand description
What:
Copy arguments without the tokens at removed,
which are indexes relative to
offset (the index of the first region token).
Why:
Wrapper-only flags are deleted by position,
so an equal-looking value or path stays.
In TS you’d write (pseudocode):
const kept = args.filter((_, i) => !removed.includes(i - offset));