mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 01:53:16 +00:00
fix issue 6798
This commit is contained in:
parent
03ae77b8b0
commit
b6c85df55a
@ -2071,7 +2071,7 @@ pub fn cmdInit(
|
||||
while (i < args.len) : (i += 1) {
|
||||
const arg = args[i];
|
||||
if (mem.startsWith(u8, arg, "-")) {
|
||||
if (mem.eql(u8, arg, "--help")) {
|
||||
if (mem.equal(u8, arg, "-h") or mem.eql(u8, arg, "--help")) {
|
||||
try io.getStdOut().writeAll(usage_init);
|
||||
return cleanExit();
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user