Functions

f
tokenize(args: readonly string[]): ArgToken[]

Classifies argv into query / flag / input tokens.

Interfaces

I
FlagToken

Any other flag (--watch, --timeout=5000, -o, …), passed through verbatim.

I
InputToken

A positional target: a file, folder, or glob (possibly with a #34 line suffix).

I
QueryToken

A query flag (-t/-m/-s/-p) with its resolved value.

Type Aliases

T
ArgToken = QueryToken | FlagToken | InputToken

One classified argv entry: a query flag, any other flag, or a positional input.