git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] On error, do not list all commands, but point to --help option.
@ 2007-10-20  8:24 Jari Aalto
  2007-10-20 20:28 ` Johannes Schindelin
  2007-10-20 22:41 ` Jari Aalto
  0 siblings, 2 replies; 16+ messages in thread
From: Jari Aalto @ 2007-10-20  8:24 UTC (permalink / raw)
  To: git

- commented out call to list_common_cmds_help()
- Send error message to stderr, not stdout.

Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 help.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/help.c b/help.c
index 1cd33ec..dc9e59f 100644
--- a/help.c
+++ b/help.c
@@ -185,8 +185,8 @@ 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);
+        /* list_common_cmds_help(); */
 	exit(1);
 }
 
-- 
1.5.3.2.81.g17ed

Welcome to FOSS revolution: we fix and modify until it shines

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-10-24  0:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-20  8:24 [PATCH] On error, do not list all commands, but point to --help option Jari Aalto
2007-10-20 20:28 ` Johannes Schindelin
2007-10-20 22:28   ` Jari Aalto
2007-10-20 23:02     ` Johannes Schindelin
2007-10-21  2:06       ` Shawn O. Pearce
2007-10-21  3:24         ` Jeff King
2007-10-21  3:29           ` Shawn O. Pearce
2007-10-21  6:33             ` Yin Ping
2007-10-21  8:58         ` Wincent Colaiuta
2007-10-21 12:42           ` Andreas Ericsson
2007-10-21 13:13             ` Jan Hudec
2007-10-21 14:17               ` Andreas Ericsson
2007-10-24  0:28         ` Salikh Zakirov
2007-10-20 22:41 ` Jari Aalto
2007-10-21  3:33   ` Shawn O. Pearce
2007-10-21 10:09     ` Jan Hudec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).