X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=help.c;h=e5662d9014e758fee00b890e06ffc66cd4aa0291;hb=e2b7eaf0ca3897940961d23392d4ff718867ea9f;hp=6a9af4d175f2fe9724a2844df63e4011ba91f1b3;hpb=c182ec90d824168cfb70494bb920c0a2fb590d98;p=git.git diff --git a/help.c b/help.c index 6a9af4d17..e5662d901 100644 --- a/help.c +++ b/help.c @@ -185,8 +185,7 @@ static void show_man_page(const char *git_cmd) void help_unknown_cmd(const char *cmd) { - printf("git: '%s' is not a git-command\n\n", cmd); - list_common_cmds_help(); + fprintf(stderr, "git: '%s' is not a git-command. See 'git --help'.\n", cmd); exit(1); } @@ -219,5 +218,3 @@ int cmd_help(int argc, const char **argv, const char *prefix) return 0; } - -