ParseOccurrence
One spelling of a flag in the arguments passed to the matched command.
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
src/core/parse/context.ts - Source link:
src/core/parse/context.ts:4
Signatures
ts
interface ParseOccurrence {}Members
Properties
spelling
The flag spelling, including its dashes and excluding any attached value.
ts
spelling: string;index
Zero-based index in the matched command's argv. Grouped short flags share an index.
ts
index: number;negated
Whether this spelling selected the flag's declared negation.
ts
negated: boolean;