RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 878648 - Remove newline prior to Usage statement in 'subscription-manager --help'
Summary: Remove newline prior to Usage statement in 'subscription-manager --help'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: 771481 840993 886216
TreeView+ depends on / blocked
 
Reported: 2012-11-20 21:04 UTC by Matt Reid
Modified: 2013-02-21 09:01 UTC (History)
3 users (show)

Fixed In Version: subscription-manager-1.1.11-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 09:01:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0350 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-02-20 20:53:35 UTC

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


Note You need to log in before you can comment on or make changes to this bug.