Merge pull request #959 from thelounge/astorije/fix-help-cli
Fix `-h` help option alias shadowed by a similar alias for `--home`
This commit is contained in:
commit
972e1eefa7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user