INNER CODE UNIT · JavaScript
m
danburzo/percollate · src/cli-opts.js:120
let m = opt.match(/^no-(.+)$/);
if (m) {
opts[m[1]] = false;
} else {
if (opts_with_arr.has(opt)) {
if (!opts[opt]) {
opts[opt] = [];
}
if (value !== undefined) {
opts[opt].push(value);
}
} else {
opts[opt] = value !== undefined ? value : true;
}
}
},
operand(operand, option) {