@wcauchois/program-builder > ProgramBuilder > stringFlag
ProgramBuilder.stringFlag() method
Add an optional valued flag to the program.
Signature:stringFlag<K extends string>(name: string, options: INullableValuedFlagOptions<K, string>): ExtendProgramBuilderWithOptional<T, K, string>;
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 | INullableValuedFlagOptions<K, string> | See INullableValuedFlagOptions. |
ExtendProgramBuilderWithOptional<T, K, string>