How to pack/distribute?
djalmaaraujo opened this issue · comments
Djalma Araújo de Andrade commented
Running your example code, but getting:
➜ wrklog node index.js
> building from [object Object] to undefined
> these are extra opts undefined
const sade = require('sade')
const prog = sade('wrk')
prog
.version('1.0.5')
.option('--global, -g', 'An example global flag')
.option('-c, --config', 'Provide path to custom config', 'foo.config.js')
prog
.command('build <src> <dest>')
.describe('Build the source directory. Expects an `index.js` entry file.')
.option('-o, --output', 'Change the name of the output file', 'bundle.js')
.example('build src build --global --config my-conf.js')
.example('build app public -o main.js')
.action((src, dest, opts) => {
console.log(`> building from ${src} to ${dest}`)
console.log('> these are extra opts', opts)
})
prog.parse(process.argv)