summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2007-10-21 01:41:41 +0300
committerShawn O. Pearce <spearce@spearce.org>2007-10-22 01:57:50 -0400
commitb5d21a4b68aa69c7a2b4d2239aaa9ee5a51058a7 (patch)
tree83ca62bdb062ecb1809ac6dcd7b0d99dfe29984a /help.c
parentdd8175f83c725619d72d6bbaacf8eaafc158edea (diff)
downloadgit-b5d21a4b68aa69c7a2b4d2239aaa9ee5a51058a7.tar.gz
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 <jari.aalto@cante.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'help.c')
-rw-r--r--help.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/help.c b/help.c
index 1cd33ece6b..814a8cd02a 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);
}