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

21 lines (18 loc) 318 B
'use strict'; /** * For tasks to run, regardless of other options passed on the command line. * * ```json * $ app --run * ``` * @name run * @api public */ module.exports = function(app) { return function(val, key, config, next) { if (val === false) { config.tasks = []; } next(); }; };