@wcauchois/program-builder > ProgramBuilder > optionalArg
ProgramBuilder.optionalArg() method
Add an optional positional argument to the program.
Signature:optionalArg<K extends string>(dest: K, options?: IPositionalArgumentMetadata): ExtendProgramBuilderWithOptional<T, K, string>;
Parameters
Parameter | Type | Description |
---|---|---|
dest |
| The destination key into which the argument value will be stored. |
options |
| See IPositionalArgumentMetadata. |
ExtendProgramBuilderWithOptional<T, K, string>