mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 22:01:47 +00:00
fix bun init -h (#16896)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user