Skip to content

Commit

Permalink
git: grok 'help' to mean '--help'.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andreas Ericsson authored and Junio C Hamano committed Jan 6, 2006
1 parent 2ed8e62 commit da6bf70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit da6bf70

Please sign in to comment.