UNPKG

base-cli-process

Version:

Normalizers for common argv commands handled by the base-cli plugin. Also pre-processes the given object with base-cli-schema before calling `.process()`

14 lines (11 loc) 255 B
'use strict'; var debug = require('../debug'); var utils = require('../utils'); module.exports = function(app, prop) { return function(arr, key, config, next) { arr.forEach(function(name) { app.use(require(name)); }); next(); } };