[dist] Semantic cleanup from sloppy coding in #76.

This commit is contained in:
indexzero 2014-11-26 01:02:59 -05:00
parent ffce2cbec1
commit f771500266

View file

@ -29,13 +29,11 @@ var Provider = exports.Provider = function (options) {
// Define wrapper functions for using basic stores
// in this instance
//
Provider.prototype['argv'] = function(options, usage) {
return this.add('argv', options, usage);
};
['env'].forEach(function (type) {
Provider.prototype[type] = function (options) {
return this.add(type, options);
['add', 'env'].forEach(function (type) {
Provider.prototype[type] = function () {
var args = [type].concat(Array.prototype.slice.call(arguments));
return this.add.apply(this, args);
};
});