1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 22:31:12 +02:00

(scm_shell_usage): Print to stdout for --help, per GNU standard.

This commit is contained in:
Kevin Ryde 2004-02-18 00:23:16 +00:00
parent 5bc692ff08
commit fbfb6f8529

View file

@ -366,10 +366,12 @@ char *scm_usage_name = 0;
void
scm_shell_usage (int fatal, char *message)
{
if (message)
fprintf (stderr, "%s\n", message);
FILE *fp = (fatal ? stderr : stdout);
fprintf (stderr,
if (message)
fprintf (fp, "%s\n", message);
fprintf (fp,
"Usage: %s OPTION ...\n"
"Evaluate Scheme code, interactively or from a script.\n"
"\n"