Skip to content

Home > resol-vbus-core-toolbox > ArgParser > consumeArg

ArgParser.consumeArg() method

Consume the next argument and make sure it is not an option.

Signature:

typescript
consumeArg(option: string): string;

Parameters

Parameter

Type

Description

option

string

Option to report in error messages.

**Returns:**

string

Next argument