Skip to content

ElectronCommandLine

Unofficial

Reads and manipulates the command line arguments that Chromium uses.

Import:

import type { ElectronCommandLine } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ElectronCommandLine

Methods

Method Returns Description
appendArgument(value) void Appends an argument to Chromium's command line. The argument is quoted correctly.
appendSwitch(theSwitch, value?) void Appends a switch (with optional value) to Chromium's command line.
getSwitchValue(theSwitch) string Returns the value of the given command-line switch.
hasSwitch(theSwitch) boolean Returns whether the given command-line switch is present.
removeSwitch(theSwitch) void Removes the specified switch from Chromium's command line.

Links to this page: