Skip to content

ElectronCommandLine.appendSwitch method

ElectronCommandLine › appendSwitch

Unofficial

Appends a switch (with optional value) to Chromium's command line.

Signature:

appendSwitch(theSwitch: string, value?: string | undefined): void

Parameters:

ParameterTypeDescription
theSwitchstringThe switch to append.
value?string | undefinedThe optional value for the switch.

Returns: void