From: Jari Aalto Date: Sat, 20 Oct 2007 22:41:41 +0000 (+0300) Subject: On error, do not list all commands, but point to --help option X-Git-Tag: v1.5.4-rc0~319^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b5d21a4b68aa69c7a2b4d2239aaa9ee5a51058a7;p=git.git On error, do not list all commands, but point to --help option - Remove out call to list_common_cmds_help() - Send error message to stderr, not stdout. Signed-off-by: Jari Aalto Signed-off-by: Shawn O. Pearce --- diff --git a/help.c b/help.c index 1cd33ece6..814a8cd02 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 --help\n\n", cmd); exit(1); }