mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
Add -h alias for --help
This commit is contained in:
parent
51ffb0548d
commit
4d44a813de
@ -2078,7 +2078,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.eql(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