Fix -h help option alias shadowed by a similar alias for --home

In v2.2.1 (and in pretty much every software out there, really), `-h` was an alias of `--help`. By adding it as an alias of `--home`, it is now shown twice in the help.
This commit is contained in:
Jérémie Astori 2017-03-13 01:06:11 -04:00
parent bdf4a93200
commit 1c732ffc5b

View File

@ -10,7 +10,7 @@ var path = require("path");
var Helper = require("../helper"); var Helper = require("../helper");
program.version(Helper.getVersion(), "-v, --version") program.version(Helper.getVersion(), "-v, --version")
.option("-h, --home <path>", "path to configuration folder") .option("--home <path>", "path to configuration folder")
.parseOptions(process.argv); .parseOptions(process.argv);
Helper.setHome(program.home || process.env.LOUNGE_HOME); Helper.setHome(program.home || process.env.LOUNGE_HOME);