GNOME Bugzilla – Bug 702089
gst_init: Don't intercept --help
Last modified: 2013-06-16 09:03:51 UTC
Created attachment 246625 [details] [review] [PATCH] gst_init: Don't intercept --help 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, this patch fixes this. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
commit 7fc26027613fc98a6819739f55ca646c84fe1d9f Author: Hans de Goede <hdegoede@redhat.com> Date: Thu Jun 13 08:36:23 2013 +0200 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
Weird, this has never been an issue for buzztrax (buzztard). Cheese should probably use GOptionContext. Although the change does not seem to hurt. ~/buzztrax/bin/buzztrax-edit --help Usage: buzztrax-edit [OPTION...] Help Options: -h, --help Show help options --help-all Show all help options --help-gst Show GStreamer Options --help-bt-core Show buzztrax core options --help-bt-ic Show buzztrax interaction controller options --help-gtk Show GTK+ Options Application Options: --version Print application version -c, --command={load} Command name -i, --input-file=<songfile> Input file name --display=DISPLAY X display to use