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.
Files changed (2) hide show
  1. package/dist/cli/bin.js +4 -0
  2. 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oakbun",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Bun-native backend framework — No Magic, just code.",
5
5
  "author": "René (SchildW3rk)",
6
6
  "license": "MIT",