Skip to content

ParseContext ​

Read-only token information for one command invocation.

Signatures ​

ts
interface ParseContext {}

Members ​

Properties ​

metadata ​

Metadata accumulated by argv transforms for this invocation, shallowly frozen.

ts
metadata: Readonly<Record<string, unknown>>;

flag ​

Look up a flag by its declared name. An absent flag has zero occurrences.

ts
flag: { (name: string): ParseFlagInfo; };

See Also ​

Released under the MIT License.