parseShorts

fnPattern[] parseShorts(Tokens tokens, ref Option[] options)

Parses short option(s) from the token stream.

Handles options like "-v" or "-abc" (combined short options).

Parameters

tokensThe token stream to parse from.
optionsThe list of known options (may be modified).

Returns

An array containing the parsed Option(s).