Skip to content

ParseFlagInfo ​

CLI occurrences of one flag, before its duplicate policy selected a value.

Signatures ​

ts
interface ParseFlagInfo {}

Members ​

Properties ​

present ​

Whether the command line supplied the flag.

ts
present: boolean;

count ​

Number of times the flag appeared, including aliases and negations.

ts
count: number;

occurrences ​

Flag spellings in command-line order.

ts
occurrences: readonly ParseOccurrence[];

See Also ​

Released under the MIT License.