Skip to content

Home > resol-vbus-core-toolbox > ScriptEngine > initializeFromCommandLineArgs

ScriptEngine.initializeFromCommandLineArgs() method

Initialize this script engine from the provided command line arguments.

Signature:

typescript
initializeFromCommandLineArgs(args: string[]): Promise<CliParserOutput | CliParserFailure | undefined>;

Parameters

Parameter

Type

Description

args

string[]

The command line arguments.

**Returns:**

Promise<CliParserOutput | CliParserFailure | undefined>

Either undefined on success or the CLI parser result.