[eog] Send option parsing errors to stderr instead of stdout
- From: Felix Riemann <friemann src gnome org>
- To: svn-commits-list gnome org
- Subject: [eog] Send option parsing errors to stderr instead of stdout
- Date: Fri, 1 May 2009 14:27:56 -0400 (EDT)
commit 569ec49d109f14965c781e8e47dafe86bd63a3b3
Author: Felix Riemann <friemann svn gnome org>
Date: Fri May 1 20:25:25 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 11b81af..edfe266 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-05-01 Felix Riemann <friemann svn gnome org>
+ * src/main.c (main):
+ Output option parsing errors to stderr instead of stdout.
+
+2009-05-01 Felix Riemann <friemann svn gnome org>
+
* src/main.c (main): One doesn't need to call gtk_init explicitly if
one is using gtk_get_option_group during GOption parsing.
Also makes it possible to see help output without an X server again.
diff --git a/src/main.c b/src/main.c
index a62df51..f1e746d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -195,7 +195,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]