coa
coa copied to clipboard
Problem with parsing opts
For example:
program --opt="--one --two"
here we have one option
but coa
thinks there are three of them
@Yeti-or
I've tried to run this code:
const coa = require('coa');
coa.Cmd()
.name('ololo')
.opt('opt').short('o').long('opt').name('opt').title('opt').end()
.act((opts, args) => {
console.log(opts, args);
})
.run(process.argv.slice(2));
with node this-code.js --opt='--subopt --subopt'
and got:
{ opt: '--subopt --subopt' } {}
Are you sure there is a bug with parsing?