fix options

This commit is contained in:
2016-08-19 11:16:13 +02:00
parent 2edcb3947e
commit 0be87e2f45
4 changed files with 11 additions and 4 deletions

2
dist/cli.js vendored Normal file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env node
var index = require("./index.js");

View File

@ -23,6 +23,8 @@ exports.run = function (argvArg) {
defaultSettings: defaultConfig,
cwd: paths.cwd
});
// add argv
config.argv = argvArg;
// check mode
switch (config.mode) {
case "default":
@ -31,7 +33,7 @@ exports.run = function (argvArg) {
done.resolve(config);
break;
default:
plugins.beautylog.error("mode " + config.mode + " not recognised!".red);
plugins.beautylog.error("mode not recognised!");
process.exit(1);
}
;