From aafdb62193aeac29bcc4ea9c87f6c8245afe0581 Mon Sep 17 00:00:00 2001
From: OttoMao <ottomao@gmail.com>
Date: Thu, 19 Mar 2015 11:48:05 +0800
Subject: [PATCH] bugfix for path.join

---
 bin.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin.js b/bin.js
index 91ade58..8faad7d 100644
--- a/bin.js
+++ b/bin.js
@@ -46,12 +46,13 @@ if(program.clear){
     var ruleModule;
 
     if(program.rule){
-        var ruleFilePath = path.join(process.cwd(),program.rule);
+        var ruleFilePath = path.resolve(process.cwd(),program.rule);
         try{
             if(fs.existsSync(ruleFilePath)){
                 ruleModule = require(ruleFilePath);
                 console.log("rule file loaded :" + ruleFilePath);
             }else{
+                console.log(ruleFilePath);
                 console.log(color.red("can not find rule file"));
             }
         }catch(e){