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 878089 - cli subscription-manager --help formatting for strings that wrap
Summary: cli subscription-manager --help formatting for strings that wrap
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Carter Kozak
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2012-11-19 16:09 UTC by Matt Reid
Modified: 2014-09-15 00:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:34:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Subscription manager help wraps as expected (900.66 KB, image/png)
2014-02-04 15:56 UTC, Sharath Dwaral
no flags Details

Description Matt Reid 2012-11-19 16:09:24 UTC
Description of problem:
We implemented smart wrapping on https://bugzilla.redhat.com/show_bug.cgi?id=864177 for names that took more than one line to display, and wrapped them nicely indented. When we get the chance, we should apply that (or something similar) to subscription-manager --help output, so that double lines are less awkward, and don't clutter up the module names, instead staying indented and aligned.

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

How reproducible:
always

Steps to Reproduce:
1. subscription-manager --help
  
Actual results:
strings that end up wrapping to two lines start left-aligned, by the module names, instead of leaving empty space there and starting in-line with the rest of the module description strings

Expected results:
wrapped lines should be pushed over to be in-line with the position the module description strings start from

Additional info:
option description text within modules already seems to do this

Comment 1 Carter Kozak 2014-01-23 22:18:33 UTC
commit 4fc9e1afc5ada9db5783a3c21c1c44b423ff1481
Author: ckozak <ckozak>
Date:   Tue Jan 21 17:01:01 2014 -0500

    878089: Add line wrapping when listing subscription-manager modules

Comment 4 Sharath Dwaral 2014-02-04 15:56:52 UTC
Created attachment 859222 [details]
Subscription manager help wraps as expected

Version:

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.2-1
subscription-manager: 1.10.13-1.el7
python-rhsm: 1.10.12-1.el7


Verification:

Please see attachment.

the Stdout of subscription-manager --hel wraps accroding to screen size as expected.

VERIFIED

Comment 5 Carter Kozak 2014-02-04 16:06:51 UTC
Individual module --help wrapping (ex: subscription-manager attach --help) is handled by option parser, and would require a a bit more time to fix.  I only fixed the modules help.  I'll probably tackle individual module help wrapping in the future, but not in this release.

Comment 6 Ludek Smid 2014-06-13 12:34:01 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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