ProgramArgs.occurencesOf

Gets number of flag occurences.

For non-repeating flags, returns either 0 or 1.

class ProgramArgs
int
occurencesOf
(
string name
)

Return Value

Type: int

Number of flag occurences, 0 on none.

See Also

hasFlag, flag

Meta