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

View File

@ -40,6 +40,9 @@ export var run = function(argvArg){
cwd:paths.cwd
});
// add argv
config.argv = argvArg;
// check mode
switch (config.mode){
case "default":
@ -48,7 +51,7 @@ export var 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);
};