diff options
author | 0neGal <mail@0negal.com> | 2021-12-27 17:40:57 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2021-12-27 17:40:57 +0100 |
commit | 7bf0b8a2f67009a6347daa587bf39995ac7700da (patch) | |
tree | 8f7fdf4eac7049407ee4c378b0cc04ec492e5379 /src/cli.js | |
parent | 8b30edac91a7db4a0221f1dff63434ad8e873064 (diff) | |
download | Viper-7bf0b8a2f67009a6347daa587bf39995ac7700da.tar.gz Viper-7bf0b8a2f67009a6347daa587bf39995ac7700da.zip |
added --debug
This means devtools don't get opened no matter what and --debug is
required for it to open.
Diffstat (limited to 'src/cli.js')
-rw-r--r-- | src/cli.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); } } |