From: Andreas Ericsson Date: Tue, 3 Jan 2006 09:53:54 +0000 (+0100) Subject: git: grok 'help' to mean '--help'. X-Git-Tag: v1.0.7^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=da6bf70ebf7d485e3643ba3569962a4c08e37906;p=git.git git: grok 'help' to mean '--help'. Most other scm's understand it, most users expect it and it's an easy fix. Signed-off-by: Andreas Ericsson Signed-off-by: Junio C Hamano --- diff --git a/git.c b/git.c index e795ddb81..5e7da74b6 100644 --- a/git.c +++ b/git.c @@ -244,6 +244,11 @@ int main(int argc, char **argv, char **envp) for (i = 1; i < argc; i++) { char *arg = argv[i]; + if (!strcmp(arg, "help")) { + show_help = 1; + continue; + } + if (strncmp(arg, "--", 2)) break;