fix issue 6798

This commit is contained in:
Guoxin Yin 2020-11-09 02:48:17 +08:00
parent 03ae77b8b0
commit b6c85df55a

View File

@ -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 {