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 <ae@op5.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Andreas Ericsson 2006-01-03 10:53:54 +01:00 committed by Junio C Hamano
parent 2ed8e622bf
commit da6bf70ebf

5
git.c
View File

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