summaryrefslogtreecommitdiff
path: root/libguile/script.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2004-02-18 00:22:28 +0000
committerKevin Ryde <user42@zip.com.au>2004-02-18 00:22:28 +0000
commit48dc9f349d9cc78dddad08727c810bc2e9c34826 (patch)
treeed7d8ed79dd7698266ac060765e20973965509b7 /libguile/script.c
parentd8b95e27aba936a909fcfb4bac7accb14d383fdb (diff)
downloadguile-48dc9f349d9cc78dddad08727c810bc2e9c34826.tar.gz
(scm_shell_usage): Print to stdout for --help, per GNU standard.
Diffstat (limited to 'libguile/script.c')
-rw-r--r--libguile/script.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libguile/script.c b/libguile/script.c
index 622836290..a5f9e5f9e 100644
--- a/libguile/script.c
+++ b/libguile/script.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
@@ -345,10 +345,12 @@ char *scm_usage_name = 0;
void
scm_shell_usage (int fatal, char *message)
{
+ FILE *fp = (fatal ? stderr : stdout);
+
if (message)
- fprintf (stderr, "%s\n", message);
+ fprintf (fp, "%s\n", message);
- fprintf (stderr,
+ fprintf (fp,
"Usage: %s OPTION ...\n"
"Evaluate Scheme code, interactively or from a script.\n"
"\n"