pub fn positional_tokens(parsed: &ParsedOptions, length: usize) -> Vec<usize>Expand description
What:
Every non-option token index in order:
those before the boundary,
then every
token after it.
length is the region’s token count.
Why:
Git hands the command both groups as its remaining arguments.
Gotcha:
Under Boundary::NonOption the boundary token itself is positional;
under
-- and --end-of-options it is not.
In TS you’d write (pseudocode):
const positionals = [...parsed.leading, ...indexesAfterBoundary];