Skip to content

ElectronCommandLine.getSwitchValue method

ElectronCommandLine › getSwitchValue

Unofficial

Returns the value of the given command-line switch.

Signature:

getSwitchValue(theSwitch: string): string

Parameters:

Parameter Type Description
theSwitch string The switch to read.

Returns: stringThe switch value, or an empty string when the switch is absent or has no value.