oakbun 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/bin.js +4 -0
- package/package.json +1 -1
package/dist/cli/bin.js
CHANGED
|
@@ -584,6 +584,10 @@ var BUILTIN = {
|
|
|
584
584
|
};
|
|
585
585
|
function parseArgs(argv, options) {
|
|
586
586
|
const result = {};
|
|
587
|
+
for (const opt of options) {
|
|
588
|
+
const match = /^--(\w[\w-]*)/.exec(opt.flag);
|
|
589
|
+
if (match && opt.default !== void 0) result[match[1]] = opt.default;
|
|
590
|
+
}
|
|
587
591
|
for (let i = 0; i < argv.length; i++) {
|
|
588
592
|
const arg = argv[i];
|
|
589
593
|
for (const opt of options) {
|