Skip to content

ParseOccurrence ​

One spelling of a flag in the arguments passed to the matched command.

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;

See Also ​

Released under the MIT License.