@wcauchois/program-builder > ProgramBuilder > intFlag

ProgramBuilder.intFlag() method

Add an optional valued flag to the program.

Signature:
intFlag<K extends string>(name: string, options: INullableValuedFlagOptions<K, number>): ExtendProgramBuilderWithOptional<T, K, number>;

Parameters

ParameterTypeDescription
name
string
The name for the flag, including leading dashes. Multiple alternative names may be specified by separating them within the string by commas. For example, "-i,--input".
optionsINullableValuedFlagOptions<K, number>See INullableValuedFlagOptions.
Returns:

ExtendProgramBuilderWithOptional<T, K, number>