Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Fix load file passing params too
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 22, 2016
1 parent 394518c commit 08beda5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function readConfig (filepath) {
var yargs = process.argv.slice(2)
if (yargs.length === 0) return yargs

var filepath = path.resolve(yargs[0], FILENAME)
var filepath = path.resolve(yargs[yargs.length - 1], FILENAME)
if (!existFile(filepath)) return yargs

var config = fs.readFileSync(filepath, 'utf8')
Expand Down

0 comments on commit 08beda5

Please # to comment.