[eog/gnome-2-26] Send option parsing errors to stderr instead of stdout



commit 532660d63a3c38f6d498e9bb0f6bcfc67362e005
Author: Felix Riemann <friemann svn gnome org>
Date:   Fri May 1 20:25:07 2009 +0200

    Send option parsing errors to stderr instead of stdout
---
 ChangeLog  |    5 +++++
 src/main.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a83c525..0c138f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-01  Felix Riemann  <friemann svn gnome org>
+
+	* src/main.c (main):
+	Send option parsing errors to stderr instead of stdout.
+
 2009-04-30  Felix Riemann  <friemann svn gnome org>
 
 	* src/eog-image.c (eog_image_set_exif_data):
diff --git a/src/main.c b/src/main.c
index 3efcf99..e84674f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -196,7 +196,7 @@ main (int argc, char **argv)
 		help_msg = g_strdup_printf (_("Run '%s --help' to see a full "
 					      "list of available command line "
 					      "options."), argv[0]);
-                g_print("%s\n%s\n", error->message, help_msg);
+                g_printerr ("%s\n%s\n", error->message, help_msg);
                 g_error_free (error);
 		g_free (help_msg);
                 g_option_context_free (ctx);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]