From 7fc26027613fc98a6819739f55ca646c84fe1d9f Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 13 Jun 2013 08:36:23 +0200 Subject: [PATCH] gst: Don't intercept --help in gst_init() Before this patch gst_init would intercept --help, causing for example cheese's --help to look like this: [hans@shalem cheese]$ cheese --help Usage: cheese [OPTION...] - GStreamer initialization Help Options: -h, --help Show help options --help-all Show all help options --help-gst Show GStreamer Options gst_init is the only gfoo_init function which does this. https://bugzilla.gnome.org/show_bug.cgi?id=702089 --- gst/gst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/gst.c b/gst/gst.c index bd748c7..950fc18 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -327,6 +327,7 @@ gst_init_check (int *argc, char **argv[], GError ** err) #ifndef GST_DISABLE_OPTION_PARSING ctx = g_option_context_new ("- GStreamer initialization"); g_option_context_set_ignore_unknown_options (ctx, TRUE); + g_option_context_set_help_enabled (ctx, FALSE); group = gst_init_get_option_group (); g_option_context_add_group (ctx, group); res = g_option_context_parse (ctx, argc, argv, err); -- 2.7.4