Skip to content

Commit

Permalink
Fix for --root cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
tadatuta committed Dec 10, 2012
1 parent 7b6ce2b commit 776beff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/coa.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ module.exports = require('coa').Cmd()
.name('root').short('r').long('root')
.title('project root (type "cwd" for current working directory)')
.val(function(d) {
d == 'cwd' && (d = process.cwd());

return PATH.resolve(d);
})
.end()
Expand Down

0 comments on commit 776beff

Please sign in to comment.