Skip to content

Latest commit

 

History

History
71 lines (40 loc) · 1.14 KB

unorderedstrategy.md

File metadata and controls

71 lines (40 loc) · 1.14 KB

lexureUnorderedStrategy

Interface: UnorderedStrategy

A strategy to match unordered arguments in parsing.

Hierarchy

  • UnorderedStrategy

Index

Methods

Methods

matchFlag

  • 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

  • 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

  • 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.