Merge pull request #7032 from GuoxinYin/master

Add -h alias for --help
This commit is contained in:
Alexandros Naskos 2020-11-17 15:52:39 +02:00 committed by GitHub
commit 21a77f7ac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2075,7 +2075,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 {