@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

ParameterTypeDescription
dest
K
The destination key into which the argument value will be stored.
options
IPositionalArgumentMetadata
See IPositionalArgumentMetadata.
Returns:

ExtendProgramBuilderWithRequired<T, K, string>

Remarks

The order in which you call arg on a ProgramBuilder matters.