UNPKG

poi

Version:

A zero-config bundler for JavaScript applications.

21 lines (15 loc) 279 B
const cac = require('cac') module.exports = _args => { const cli = cac() const { args, options } = cli.parse(_args) return { get(name) { return options[name] }, has(name) { return this.get(name) !== undefined }, options, args } }