summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorAndreas Ericsson <exon@op5.se>2006-01-03 09:53:54 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-01-06 04:28:52 (GMT)
commitda6bf70ebf7d485e3643ba3569962a4c08e37906 (patch)
tree1ecdfbf8bfe98d0583d24b0fb69cc7c0e3975a36 /git.c
parent2ed8e622bf6b718d4808e1dd2e564247f9931dde (diff)
downloadgit-da6bf70ebf7d485e3643ba3569962a4c08e37906.zip
git-da6bf70ebf7d485e3643ba3569962a4c08e37906.tar.gz
git-da6bf70ebf7d485e3643ba3569962a4c08e37906.tar.bz2
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>
Diffstat (limited to 'git.c')
-rw-r--r--git.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/git.c b/git.c
index e795ddb..5e7da74 100644
--- a/git.c
+++ b/git.c
@@ -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;