Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Aug 5, 2012
1 parent 291ab51 commit fb2d761
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
@@ -1,18 +1,18 @@

var argv = require('optimist').argv)
var argv = require('optimist').argv
var cc = require('config-chain')
var join = require('path').join
var home = process.env.HOME
var etc = '/etc'


console.log(argv)
module.exports = function (name, defaults) {
if(!name)
throw new Error('nameless configuration fail')

return cc(
argv,
cc.env(name + '_')
cc.env(name + '_'),
argv.config,
join(home, '.' + name + 'rc'),
join(home, '.' + name, 'config'),
Expand All @@ -21,6 +21,6 @@ module.exports = function (name, defaults) {
join(etc, name + 'rc'),
join(etc, name, 'config'),
defaults
).store
).snapshot

}

0 comments on commit fb2d761

Please sign in to comment.