A strategy to match unordered arguments in parsing.
- UnorderedStrategy
- matchFlag(s: string): string | null
Match a flag.
Parameters:
Name | Type | Description |
---|---|---|
s | string | The string. |
Returns: string | null
The name of the flag.
- matchOption(s: string): string | null
Match an option.
Parameters:
Name | Type | Description |
---|---|---|
s | string | The string. |
Returns: string | null
The name of the option.
- matchCompactOption(s: string): [string, string] | null
Match a compact option.
Parameters:
Name | Type | Description |
---|---|---|
s | string | The string. |
Returns: [string, string] | null
A pair containing the name of the option and the value.