After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 702089 - gst_init: Don't intercept --help
gst_init: Don't intercept --help
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.x
Other Linux
: Normal normal
: 1.1.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-06-12 13:03 UTC by Hans de Goede
Modified: 2013-06-16 09:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] gst_init: Don't intercept --help (1.13 KB, patch)
2013-06-12 13:03 UTC, Hans de Goede
committed Details | Review

Description Hans de Goede 2013-06-12 13:03:08 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>
Comment 1 Sebastian Dröge (slomo) 2013-06-13 06:37:53 UTC
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
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2013-06-16 09:03:51 UTC
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