提交 da6bf70e 编写于 作者: A Andreas Ericsson 提交者: Junio C Hamano

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: NAndreas Ericsson <ae@op5.se>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 2ed8e622
...@@ -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++) { 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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册