Bug 878089

Summary: cli subscription-manager --help formatting for strings that wrap
Product: Red Hat Enterprise Linux 7 Reporter: Matt Reid <mreid>
Component: subscription-managerAssignee: Carter Kozak <ckozak>
Status: CLOSED CURRENTRELEASE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: bkearney, ckozak, fsharath, jsefler
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: 2014-06-13 12:34:01 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: 863175    
Attachments:
Description Flags
Subscription manager help wraps as expected none

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.