Bug 878648

Summary: Remove newline prior to Usage statement in 'subscription-manager --help'
Product: Red Hat Enterprise Linux 6 Reporter: Matt Reid <mreid>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: alikins, bkearney, jsefler
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.1.11-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 09:01:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 771481, 840993, 886216    

Description Matt Reid 2012-11-20 21:04:00 UTC
Description of problem:
One other thing we can do to improve our 'subscription-manager -h' output is to drop the newline we show prior to showing the Usage statement. We should investigate if we can make this change easily for 6.4.

For the most part, in our other tools we don't have that extra line inserted before the Usage statement, we just immediately show Usage (aside from the split lines used a few places which are difficult to change).

Borrowing some legwork jsefler did for a related bug:

[root@jsefler-6 ~]# subscription-manager-gui --help | head -2
Usage: subscription-manager-gui [OPTIONS]                       <==== NO LINE

[root@jsefler-6 ~]# subscription-manager --help | head -2
                                                                <==== EXTRA LINE
Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help]

[root@jsefler-6 ~]# rhsm-icon --help | head -2
Usage:                                                          <==== SPLIT LINE
  rhsm-icon [OPTION...] 

[root@jsefler-6 ~]# rhsmcertd --help | head -2
Usage:                                                          <==== SPLIT LINE
  rhsmcertd [OPTION...] 

[root@jsefler-6 ~]# rct --help | head -2
                                                                <==== EXTRA LINE
Usage: rct MODULE-NAME [MODULE-OPTIONS] [--help]

[root@jsefler-6 ~]# /usr/libexec/rhsmd --help | head -2
Usage: rhsmd [OPTIONS]                                          <==== NO LINE

[root@jsefler-6 ~]# /usr/libexec/rhsmcertd-worker --help | head -2
Usage: rhsmcertd-worker [OPTIONS]                               <==== NO LINE

[root@jsefler-6 ~]# rhn-migrate-classic-to-rhsm --help | head -2
Usage: rhn-migrate-classic-to-rhsm [OPTIONS]                    <==== NO LINE

[root@jsefler-6 ~]# rct cat-cert --help | head -2
Usage: rct cat-cert [OPTIONS] CERT_FILE                         <==== NO LINE

[root@jsefler-6 ~]# rct stat-cert --help | head -2
Usage: rct stat-cert [OPTIONS] CERT_FILE                        <==== NO LINE


Version-Release number of selected component (if applicable):
subscription-manager-1.8.0-1

Additional info:
If we can get this and rct cleaned up, we'll be in great shape

Comment 2 Bryan Kearney 2012-11-29 16:02:31 UTC
commit b2ebf55af2eece93a080a22e8946f81edc0bc65d
Author: Bryan Kearney <bkearney>
Date:   Mon Nov 26 15:45:23 2012 -0500

    878648: Make the help usage formatting consistent for the rct and subscription manager commands

Comment 6 John Sefler 2012-12-10 19:37:22 UTC
VERIFIED in https://bugzilla.redhat.com/show_bug.cgi?id=854374#c9

Comment 8 errata-xmlrpc 2013-02-21 09:01:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0350.html