@wcauchois/program-builder > ProgramBuilder > floatFlag
ProgramBuilder.floatFlag() method
Add a required valued flag to the program.
Signature:floatFlag<K extends string>(name: string, options: INonNullValuedFlagOptions<K, number>): ExtendProgramBuilderWithRequired<T, K, number>;
Parameters
Parameter | Type | Description |
---|---|---|
name |
| 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". |
options | INonNullValuedFlagOptions<K, number> | See INonNullValuedFlagOptions. |
ExtendProgramBuilderWithRequired<T, K, number>