use js_sys::{JsString, Object};
use wasm_bindgen::prelude::*;
#[wasm_bindgen(module = "electron")]
extern {
#[wasm_bindgen(extends = Object)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub type CommandLine;
#[wasm_bindgen(method, js_name = "appendArgument")]
pub fn append_argument(this: &CommandLine, value: &str);
#[wasm_bindgen(method, js_name = "appendSwitch")]
pub fn append_switch(this: &CommandLine, switch: &str, value: Option<&str>);
#[wasm_bindgen(method, js_name = "getSwitchValue")]
pub fn get_switch_value(this: &CommandLine, switch: &str) -> JsString;
#[wasm_bindgen(method, js_name = "hasSwitch")]
pub fn has_switch(this: &CommandLine, switch: &str) -> bool;
}