diff --git a/lib/utils/app.js b/lib/utils/app.js index e4e8089..f1ce920 100644 --- a/lib/utils/app.js +++ b/lib/utils/app.js @@ -2,6 +2,7 @@ const yargs = require("yargs-parser") const app = {} const { cmdAlias } = require("./../config") const help = require("./../cmd/help") +const package = require("./../../package.json") const options = { new: { @@ -35,6 +36,7 @@ app.parse = () => { if (!cmdAlias[cmd]) throw new Error(`banga: "${cmd}" is not a recognised command or alias`) args.$cmd = cmdAlias[cmd] + args.$version = package.version process.ARGS = { ...options[args.$cmd], ...args } }