"use strict"; global.log = require("../log.js"); const program = require("commander"); const colors = require("colors/safe"); const Helper = require("../helper"); const Utils = require("./utils"); program.version(Helper.getVersion(), "-v, --version") .option("--home ", `${colors.bold("[DEPRECATED]")} Use the ${colors.green("LOUNGE_HOME")} environment variable instead.`) .on("--help", Utils.extraHelp) .parseOptions(process.argv); if (program.home) { log.warn(`${colors.green("--home")} is ${colors.bold("deprecated")} and will be removed in a future version.`); log.warn(`Use the ${colors.green("LOUNGE_HOME")} environment variable instead.`); } let home = program.home || process.env.LOUNGE_HOME; if (!home) { home = Utils.defaultLoungeHome(); } Helper.setHome(home); require("./start"); require("./config"); require("./list"); require("./add"); require("./remove"); require("./reset"); require("./edit"); program.parse(process.argv); if (!program.args.length) { program.help(); }