]> asedeno.scripts.mit.edu Git - git.git/blobdiff - help.c
Merge branch 'maint'
[git.git] / help.c
diff --git a/help.c b/help.c
index 6a9af4d175f2fe9724a2844df63e4011ba91f1b3..e5662d9014e758fee00b890e06ffc66cd4aa0291 100644 (file)
--- 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 'git --help'.\n", cmd);
        exit(1);
 }
 
@@ -219,5 +218,3 @@ int cmd_help(int argc, const char **argv, const char *prefix)
 
        return 0;
 }
-
-