UNPKG

base-cli

Version:

Plugin for base-methods that maps built-in methods to CLI args (also supports methods from a few plugins, like 'base-store', 'base-options' and 'base-data'.

19 lines (15 loc) 374 B
/*! * base-cli <https://github.com/jonschlinkert/base-cli> * * Copyright (c) 2015-2016, Jon Schlinkert. * Licensed under the MIT License. */ 'use strict'; var config = require('base-config'); var argv = require('base-argv'); module.exports = function(options) { return function(app, base) { this.use(argv(options)); this.use(config.create('cli')); }; };