aboutsummaryrefslogtreecommitdiff
path: root/src/cli.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-31 16:59:48 +0100
committer0neGal <mail@0negal.com>2021-12-31 16:59:48 +0100
commit67b32b527aec8d36a4b6cca14677febc46f0e26d (patch)
tree47691134760f1cab6b9f7acbfb26a48d78326643 /src/cli.js
parentc5c63d6c8a81596d0dcf3e14e072ea14f4d0610c (diff)
parentba82a7e8e5bc90705649c859674caeb334996b81 (diff)
downloadViper-67b32b527aec8d36a4b6cca14677febc46f0e26d.tar.gz
Viper-67b32b527aec8d36a4b6cca14677febc46f0e26d.zip
Merge branch 'main' of 0neGal/viper into mod-support
Diffstat (limited to 'src/cli.js')
-rw-r--r--src/cli.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cli.js b/src/cli.js
index f1962e7..f4cce18 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -40,12 +40,7 @@ async function init() {
}
if (cli.hasSwitch("update")) {ipcMain.emit("update")}
- if (cli.hasSwitch("version")) {
- console.log("Viper: v" + require("../package.json").version);
- console.log("Node: " + process.version);
- console.log("Electron: v" + process.versions.electron);
- exit();
- }
+ if (cli.hasSwitch("version")) {ipcMain.emit("versioncli")}
if (cli.hasSwitch("setpath")) {
if (cli.getSwitchValue("setpath") != "") {