ElectronCommandLine.hasSwitch method
ElectronCommandLine › hasSwitch
Unofficial
Returns whether the given command-line switch is present.Signature:
hasSwitch(theSwitch: string): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| theSwitch | string | The switch to check. |
Returns: boolean — Whether the command-line switch is present.