mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
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:
parent
2ed8e622bf
commit
da6bf70ebf
5
git.c
5
git.c
|
@ -244,6 +244,11 @@ int main(int argc, char **argv, char **envp)
|
||||||
for (i = 1; i < argc; i++) {
|
for (i = 1; i < argc; i++) {
|
||||||
char *arg = argv[i];
|
char *arg = argv[i];
|
||||||
|
|
||||||
|
if (!strcmp(arg, "help")) {
|
||||||
|
show_help = 1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (strncmp(arg, "--", 2))
|
if (strncmp(arg, "--", 2))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue