require 'absolute ruleFilePath' instead of 'relative rule option';
This commit is contained in:
赫门 2015-02-20 00:53:18 +08:00
parent d7173b9d4f
commit 9e857463fc

2
bin.js
View File

@ -37,7 +37,7 @@ if(program.clear){
var ruleFilePath = path.join(process.cwd(),program.rule);
try{
if(fs.existsSync(ruleFilePath)){
ruleModule = require(program.rule);
ruleModule = require(ruleFilePath);
console.log("rule file loaded :" + ruleFilePath);
}else{
console.log(color.red("can not find rule file"));