authorgravatar for alex_naskos@hotmail.comAlexandros Naskos <alex_naskos@hotmail.com> 2020-11-17 15:52:39+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-11-17 15:52:39+02:00
log21a77f7ac35cc3404a1ed3cb03329aef1c980f30
treec0d34e212e9ce257c6d5b6a24c79c0779c779451
parente6bfa377d1144d95cbf42d340852d272044d03f2
parent7b8cb002cb7e70c354def0486bff1e61df5c9c8a
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #7032 from GuoxinYin/master

Add -h alias for --help

1 files changed, 1 insertions(+), 1 deletions(-)

src/main.zig+1-1
...@@ -2075,7 +2075,7 @@ pub fn cmdInit(...@@ -2075,7 +2075,7 @@ pub fn cmdInit(
2075 while (i < args.len) : (i += 1) {2075 while (i < args.len) : (i += 1) {
2076 const arg = args[i];2076 const arg = args[i];
2077 if (mem.startsWith(u8, arg, "-")) {2077 if (mem.startsWith(u8, arg, "-")) {
2078 if (mem.eql(u8, arg, "--help")) {2078 if (mem.eql(u8, arg, "-h") or mem.eql(u8, arg, "--help")) {
2079 try io.getStdOut().writeAll(usage_init);2079 try io.getStdOut().writeAll(usage_init);
2080 return cleanExit();2080 return cleanExit();
2081 } else {2081 } else {