aboutsummaryrefslogtreecommitdiff
path: root/src/cli.zig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cli.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cli.zig b/src/cli.zig
index 621f54fd2..3b1f7e305 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -1114,6 +1114,13 @@ pub const Command = struct {
};
ctx.args.target = Api.Target.bun;
+ var argv = try bun.default_allocator.alloc(string, std.os.argv.len -| 1);
+ if (std.os.argv.len > 1) {
+ for (argv, std.os.argv[1..]) |*dest, src| {
+ dest.* = bun.span(src);
+ }
+ }
+ ctx.passthrough = argv;
try @import("./bun_js.zig").Run.bootStandalone(
ctx,