Bug 773711

Summary: rhsm-icon --display=DISPLAY option appears in both --help and --help-gtk
Product: Red Hat Enterprise Linux 5 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED CANTFIX QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.8CC: bkearney
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-24 15:52:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 771748    

Description John Sefler 2012-01-12 17:13:12 UTC
Description of problem:

Seems to me that the --display=DISPLAY option should not be shown with
"rhsm-icon --help" since this is a "rhsm-icon --help-gtk" option as
demonstrated below...


[root@jsefler-onprem-5server ~]# rhsm-icon --help
Usage:
  rhsm-icon [OPTION...] rhsm icon

Help Options:
  -?, --help                  Show help options
  --help-all                  Show all help options
  --help-gtk                  Show GTK+ Options

Application Options:
  -c, --check-period          How often to check for validity (in seconds)
  -d, --debug                 Show debug messages
  -f, --force-icon=TYPE       Force display of the icon (expired, partial or
warning)
  -i, --check-immediately     Run the first status check right away
  --display=DISPLAY           X display to use
  ^^^^^^^^^^^^^^^^^
  REMOVE HERE SINCE.....


[root@jsefler-onprem-5server ~]# rhsm-icon --help-gtk
Usage:
  rhsm-icon [OPTION...] rhsm icon

GTK+ Options
  --class=CLASS               Program class as used by the window manager
  --name=NAME                 Program name as used by the window manager
  --display=DISPLAY           X display to use
  --screen=SCREEN             X screen to use
  --sync                      Make X calls synchronous
  --gtk-module=MODULES        Load additional GTK+ modules
  --g-fatal-warnings          Make all warnings fatal

  ^^^^^^^^^^^^^^^^^^
  ....SINCE THE DISPLAY OPTION IS HERE


Version-Release number of selected component (if applicable):
[root@jsefler-onprem-5server ~]# rpm -q subscription-manager-gnome
subscription-manager-gnome-0.98.10-1.git.0.5d83904.el5

Comment 1 RHEL Program Management 2012-01-16 05:12:10 UTC
Since RHEL 5.8 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 2 James Bowes 2012-05-24 15:52:29 UTC
If you do --help-all it shows up in Application Options but not GTK+ Options.

Having the flag always show up is intentional on the part of gtk. I don't agree with it putting itself in my application's options, but I don't have a choice.