Skip to content

Interface: ParserOptions<T>

Defined in: packages/parser/src/types.ts:92

Configuration options for the parser.

Type Parameters

Type ParameterDefault type
T extends FlagsDefinitionobject

Properties

PropertyTypeDescriptionDefined in
delimiters?string[]Delimiters to split flag names and values. Default ["=", ":"]packages/parser/src/types.ts:105
flags?TDetailed configuration for flags. Supports the full object syntax or a type constructor as a shorthand. The key is the flag name (e.g., "file" for "--file").packages/parser/src/types.ts:98
ignore?IgnoreFunctionA callback function to conditionally stop parsing. When it returns true, parsing stops and remaining arguments are preserved in ignored.packages/parser/src/types.ts:111

在 MIT 许可证下发布