Globalizate args & add peerInstall as command

This commit is contained in:
danbulant 2020-02-19 20:27:25 +01:00
parent 2f73b81a13
commit 0034f39e81

View file

@ -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":