|
|
@ -17,7 +17,7 @@ var async = require('async'), |
|
|
|
var Provider = exports.Provider = function (options) { |
|
|
|
//
|
|
|
|
// Setup default options for working with `stores`,
|
|
|
|
// `overrides`, `process.env` and `process.argv`.
|
|
|
|
// `overrides`, `process.env`.
|
|
|
|
//
|
|
|
|
options = options || {}; |
|
|
|
this.stores = {}; |
|
|
@ -30,7 +30,7 @@ var Provider = exports.Provider = function (options) { |
|
|
|
// in this instance
|
|
|
|
//
|
|
|
|
|
|
|
|
['argv', 'env'].forEach(function (type) { |
|
|
|
['env'].forEach(function (type) { |
|
|
|
Provider.prototype[type] = function () { |
|
|
|
var args = [type].concat(Array.prototype.slice.call(arguments)); |
|
|
|
return this.add.apply(this, args); |
|
|
|