@wcauchois/program-builder > ProgramBuilder > arg
ProgramBuilder.arg() method
Add a positional argument to the program.
Signature:arg<K extends string>(dest: K, options?: IPositionalArgumentMetadata): ExtendProgramBuilderWithRequired<T, K, string>;
Parameters
Parameter | Type | Description |
---|---|---|
dest |
| The destination key into which the argument value will be stored. |
options |
| See IPositionalArgumentMetadata. |
ExtendProgramBuilderWithRequired<T, K, string>
Remarks
The order in which you call arg
on a ProgramBuilder matters.