Fix loading config before HOME variable is set

This commit is contained in:
Pavel Djundik 2016-04-19 23:58:49 +03:00
parent 148be767bb
commit f4ac2aad19

View File

@ -8,14 +8,6 @@ program.version(pkg.version, "-v, --version");
program.option("");
program.option(" --home <path>" , "home path");
require("./start");
require("./config");
require("./list");
require("./add");
require("./remove");
require("./reset");
require("./edit");
var argv = program.parseOptions(process.argv);
if (program.home) {
Helper.HOME = program.home;
@ -32,6 +24,14 @@ if (!fs.existsSync(config)) {
console.log(config);
}
require("./start");
require("./config");
require("./list");
require("./add");
require("./remove");
require("./reset");
require("./edit");
program.parse(argv.args);
if (!program.args.length) {