X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git.c;h=5e7da74b6800a4256f9bcb0d0add7560213271e1;hb=da6bf70ebf7d485e3643ba3569962a4c08e37906;hp=0fd95bf751cd5abfeb8a95f3b828adde4537dfde;hpb=112d0bafd620c0e0f10614a3ba021d4de4fae331;p=git.git diff --git a/git.c b/git.c index 0fd95bf75..5e7da74b6 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; @@ -278,7 +283,7 @@ int main(int argc, char **argv, char **envp) if (*exec_path != '/') { if (!getcwd(git_command, sizeof(git_command))) { fprintf(stderr, - "git: cannot determine current directory"); + "git: cannot determine current directory\n"); exit(1); } len = strlen(git_command);