Browse Source

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>
maint
Andreas Ericsson 19 years ago committed by Junio C Hamano
parent
commit
da6bf70ebf
  1. 5
      git.c

5
git.c

@ -244,6 +244,11 @@ int main(int argc, char **argv, char **envp) @@ -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;


Loading…
Cancel
Save