diff options
author | Jari Aalto <jari.aalto@cante.net> | 2007-10-21 01:41:41 +0300 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-10-22 01:57:50 -0400 |
commit | b5d21a4b68aa69c7a2b4d2239aaa9ee5a51058a7 (patch) | |
tree | 83ca62bdb062ecb1809ac6dcd7b0d99dfe29984a | |
parent | dd8175f83c725619d72d6bbaacf8eaafc158edea (diff) | |
download | git-b5d21a4b68aa69c7a2b4d2239aaa9ee5a51058a7.tar.gz git-b5d21a4b68aa69c7a2b4d2239aaa9ee5a51058a7.tar.xz |
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>
-rw-r--r-- | help.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } |