fix bun init -h (#16896)

This commit is contained in:
Michael H
2025-01-31 23:15:44 +11:00
committed by GitHub
parent c51196a8dc
commit 891057cd20

View File

@@ -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;
}
}