Skip to content

Commit

Permalink
feat: allow cwd to be configured see #620
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Coe committed Sep 5, 2017
1 parent 0fc6d8f commit 0dcceda
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/config-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ Config.loadConfig = function (argv, cwd) {
}

var config = Config.buildYargs(cwd)
.default({
cwd: cwd
})
if (rcConfig) config.config(rcConfig)
config = config.parse(argv || [])

Expand Down Expand Up @@ -136,8 +133,8 @@ Config.buildYargs = function (cwd) {
global: false
})
.option('cwd', {
describe: 'working directory to lookup for files',
global: false
describe: 'working directory used when resolving paths',
default: cwd
})
.option('require', {
alias: 'i',
Expand Down

0 comments on commit 0dcceda

Please sign in to comment.