aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cli.js6
-rw-r--r--src/index.js4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/cli.js b/src/cli.js
index ea54235..e5fe042 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -25,6 +25,7 @@ async function init() {
if (cli.hasSwitch("help")) {
console.log(`options:
--help shows this help message
+ --debug opens the dev/debug tools
--cli forces the CLI to enable
--update updates Northstar from your set game path
@@ -61,7 +62,10 @@ async function init() {
module.exports = {
hasArgs,
init, exit,
+ hasParam: (arg) => {
+ return cli.hasSwitch(arg);
+ },
param: (arg) => {
- return cli.getSwitchValue(arg)
+ return cli.getSwitchValue(arg);
}
}
diff --git a/src/index.js b/src/index.js
index 6924b57..4e64414 100644
--- a/src/index.js
+++ b/src/index.js
@@ -20,7 +20,9 @@ function start() {
nodeIntegration: true,
contextIsolation: false,
},
- }); win.openDevTools()
+ });
+
+ if (cli.hasParam("debug")) {win.openDevTools()}
win.removeMenu();
win.loadFile(__dirname + "/app/index.html");