Blob Blame History Raw
--- vinagre-0.3/src/vinagre-main.c.old	2007-11-23 13:16:43.000000000 +0000
+++ vinagre-0.3/src/vinagre-main.c	2007-11-23 13:20:03.000000000 +0000
@@ -89,6 +89,14 @@ int main (int argc, char **argv) {
   g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE);
   g_option_context_add_group (context, gtk_get_option_group (TRUE));
   g_option_context_parse (context, &argc, &argv, &error);
+  if (error)
+    {
+      g_print ("%s\n%s\n",
+	       error->message,
+	       _("Run 'vinagre --help' to see a full list of available command line options"));
+      g_error_free (error);
+      return 1;
+    }
 
   if (!g_thread_supported ())
     g_thread_init (NULL);