Skip to content

lightgun-poc / lib/monitors / parseMonitorArg

Function: parseMonitorArg()

parseMonitorArg(raw): MonitorChoice | null

Defined in: lib/monitors.ts:46

Parses --monitor: primary, all, or a 1-based index. null = garbage.

Parameters

raw

string

Returns

MonitorChoice | null

Released under the MIT License.