cheese r1110 - in trunk: . src



Author: dgsiegel
Date: Mon Oct 13 19:57:24 2008
New Revision: 1110
URL: http://svn.gnome.org/viewvc/cheese?rev=1110&view=rev

Log:
enhance the previous patch


Modified:
   trunk/ChangeLog
   trunk/src/cheese.c

Modified: trunk/src/cheese.c
==============================================================================
--- trunk/src/cheese.c	(original)
+++ trunk/src/cheese.c	Mon Oct 13 19:57:24 2008
@@ -182,7 +182,9 @@
   g_option_context_add_group (context, gtk_get_option_group (TRUE));
   g_option_context_add_group (context, gst_init_get_option_group ());
   if (g_option_context_parse (context, &argc, &argv, &error) == FALSE) {
-    g_print (_("%s\nRun '%s --help' to see a full list of available command line options.\n"), error->message, argv[0]);
+    gchar *help_text = g_option_context_get_help (context, TRUE, NULL);
+    g_print ("%s\n\n%s", error->message, help_text);
+    g_free (help_text);
     g_error_free (error);
     g_option_context_free (context);
     return -1;



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