CommandLine Type
⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ❌
Instance members
| Instance member |
Description
|
Full Usage:
this.appendArgument value
Parameters:
string
Modifiers: inline |
Append an argument to Chromium's command line. The argument will be quoted correctly. Switches will precede arguments regardless of appending order.If you're appending an argument like --switch=value, consider using appendSwitch('switch', 'value') instead.> [!NOTE] This will not affect process.argv. The intended usage of this function is to control Chromium's behavior.
|
Full Usage:
this.appendSwitch (switch, ?value)
Parameters:
string
?value : string
Modifiers: inline |
Append a switch (with optional value) to Chromium's command line.> [!NOTE] This will not affect process.argv. The intended usage of this function is to control Chromium's behavior.
|
Full Usage:
this.getSwitchValue switch
Parameters:
string
Returns: string
Modifiers: inline |
The command-line switch value.This function is meant to obtain Chromium command line switches. It is not meant to be used for application-specific command line arguments. For the latter, please use process.argv.> [!NOTE] When the switch is not present or has no value, it returns empty string.
|
Full Usage:
this.hasSwitch switch
Parameters:
string
Returns: bool
Modifiers: inline |
Whether the command-line switch is present.
|
Full Usage:
this.removeSwitch switch
Parameters:
string
Modifiers: inline |
Removes the specified switch from Chromium's command line.> [!NOTE] This will not affect process.argv. The intended usage of this function is to control Chromium's behavior.
|
fable-electron-docs-api