From 891057cd206d51bf0c6bf91a9bbd07c4044ebc15 Mon Sep 17 00:00:00 2001 From: Michael H Date: Fri, 31 Jan 2025 23:15:44 +1100 Subject: [PATCH] fix `bun init -h` (#16896) --- src/cli/init_command.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/init_command.zig b/src/cli/init_command.zig index 5cbb0ad95c..a4676aa650 100644 --- a/src/cli/init_command.zig +++ b/src/cli/init_command.zig @@ -149,7 +149,7 @@ pub const InitCommand = struct { pub fn exec(alloc: std.mem.Allocator, argv: [][:0]const u8) !void { const print_help = brk: { for (argv) |arg| { - if (strings.eqlComptime(arg, "--help")) { + if (strings.eqlComptime(arg, "--help") or strings.eqlComptime(arg, "-h")) { break :brk true; } }