diff --git a/src/command-line/index.js b/src/command-line/index.js index 171ed053..3366dd75 100644 --- a/src/command-line/index.js +++ b/src/command-line/index.js @@ -8,14 +8,6 @@ program.version(pkg.version, "-v, --version"); program.option(""); program.option(" --home " , "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) {