[seahorse] Fix command line options parsing



commit 986c44842c064c6fa4f6b9a31b601b5f575b6a55
Author: Nuno Araujo <nuno araujo russo79 com>
Date:   Mon Feb 18 23:54:12 2013 +0100

    Fix command line options parsing
    
    Enable --help command line option.
    Display an error message if a unknown command line option is passed to the application.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686980

 libseahorse/seahorse-application.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/libseahorse/seahorse-application.c b/libseahorse/seahorse-application.c
index f7b8a31..6bbc70a 100644
--- a/libseahorse/seahorse-application.c
+++ b/libseahorse/seahorse-application.c
@@ -125,8 +125,6 @@ seahorse_application_local_command_line (GApplication *application,
        g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE);
        g_option_context_set_translation_domain(context, GETTEXT_PACKAGE);
        g_option_context_add_group (context, gtk_get_option_group (TRUE));
-       g_option_context_set_help_enabled (context, FALSE);
-       g_option_context_set_ignore_unknown_options (context, TRUE);
 
        if (g_option_context_parse (context, &argc, arguments, &error) == FALSE) {
                g_printerr ("seahorse: %s\n", error->message);


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