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>
Andreas Ericsson committed
Jan 3, 2006 at 10:53 UTC
da6bf70ebf7d485e3643ba3569962a4c08e37906
1 file changed
+5
git.c
+5
@@ -244,6 +244,11 @@ int main(int argc, char **argv, char **envp)
244
for (i = 1; i < argc; i++) {
245
char *arg = argv[i];
246
247
+ if (!strcmp(arg, "help")) {
248
+ show_help = 1;
249
+ continue;
250
+ }
251
+
252
if (strncmp(arg, "--", 2))
253
break;
254