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()`

16 lines (11 loc) 237 B
'use strict'; var debug = require('../debug'); module.exports = function(app) { return function(val, key, config, next) { debug.field(key, val); if (config.run === false) { config[key] = []; } next(); }; };