fix issue 6798

This commit is contained in:
Guoxin Yin
2020-11-09 02:58:45 +08:00
parent b6c85df55a
commit 7b8cb002cb

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.equal(u8, arg, "-h") or 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 {