From 0034f39e811fb4143a8c3cc8ad8fbfc4ea9dbb0e Mon Sep 17 00:00:00 2001 From: danbulant Date: Wed, 19 Feb 2020 20:27:25 +0100 Subject: [PATCH] Globalizate args & add peerInstall as command --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 210b42a..7ae207d 100644 --- a/index.js +++ b/index.js @@ -5,6 +5,8 @@ var console = new Console; var pkg = new Package; const VERSION = "0.1" +global.args = args; + process.on('uncaughtException', function (err) { console.error("Uncaught exception:", err.message); console.error(err.stack); @@ -35,6 +37,7 @@ switch(args.contents[0]){ break; case "i": case "install": + case "peerInstall": case "ls": case "help": case "adduser":