summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dd8175f)
raw | patch | inline | side by side (parent: dd8175f)
author | Jari Aalto <jari.aalto@cante.net> | |
Sat, 20 Oct 2007 22:41:41 +0000 (01:41 +0300) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 22 Oct 2007 05:57:50 +0000 (01:57 -0400) |
- 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>
- 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>
help.c | patch | blob | history |
index 1cd33ece6bcec6f71c6749205c18c0f413034d89..814a8cd02a4bcd80f68b406116b77ee8acbc3566 100644 (file)
--- a/help.c
+++ b/help.c
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);
}