Skip to content

Commit b993099

Browse files
committed
Merge pull request #166 from cody-/config.relative.path
Resolve passed path to config into absolute path
2 parents 89d9b5a + c9e5276 commit b993099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function getConfigPath(configPath) {
5757
return getConfigPath(configPath);
5858
}
5959

60-
var configPath = program.config || getConfigPath();
60+
var configPath = program.config && path.resolve(process.cwd(), program.config) || getConfigPath();
6161
var comb = new Comb();
6262

6363
if (program.detect) {

0 commit comments

Comments
 (0)