Header menu logo fable-electron-docs-api

CommandLine Type

⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ❌

Instance members

Instance member Description

this.appendArgument value

Full Usage: this.appendArgument value

Parameters:
    value : 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.

value : string

this.appendSwitch (switch, ?value)

Full Usage: this.appendSwitch (switch, ?value)

Parameters:
    switch : 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.

switch : string
?value : string

this.getSwitchValue switch

Full Usage: this.getSwitchValue switch

Parameters:
    switch : 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.

switch : string
Returns: string

this.hasSwitch switch

Full Usage: this.hasSwitch switch

Parameters:
    switch : string

Returns: bool
Modifiers: inline

Whether the command-line switch is present.

switch : string
Returns: bool

this.removeSwitch switch

Full Usage: this.removeSwitch switch

Parameters:
    switch : 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.

switch : string

Type something to start searching.