Bug 848095
Summary: | Adjust 'subscription-manager --help' layout | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Matt Reid <mreid> | ||||||
Component: | subscription-manager | Assignee: | John Sefler <jsefler> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Entitlement Bugs <entitlement-bugs> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 6.4 | CC: | alikins, bkearney, jsefler | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | subscription-manager-1.1.4-1 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2013-02-21 08:55:36 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 | ||||||||
Attachments: |
|
Description
Matt Reid
2012-08-14 15:11:59 UTC
Created attachment 604328 [details]
shows how many descriptions take 2 lines
URL should be http://pastebin.test.redhat.com/101904. Missed the test piece... fixed in master at 881157917884a7eb434b9cc3d00eabdcf61645e6 commit 881157917884a7eb434b9cc3d00eabdcf61645e6 Author: Bryan Kearney <bkearney> Date: Tue Oct 30 13:56:58 2012 -0400 848095: Reduce the indentation on the help text to improve the layout on smaller terminals. Created attachment 647778 [details] longer module/option descriptions are unattractive when wrapped [root@jsefler-6 ~]# rpm -q subscription-manager subscription-manager-1.1.9-1.el6.x86_64 I think a better fix for this bug is to use the same wrapping logic used to fix bug 864177 https://bugzilla.redhat.com/show_bug.cgi?id=864177#c4 Fix already committed helped clean it up some, but we do still have some strings that are too long regardless. That's an interesting thought, John, that'd be really nice. BK, would it be super trivial to apply here as well or should I file an RFE for 7.0? lets open up a new RFE for 7.0. Moving back ON_QA based on previous comments. BZ opened for 7.0 to improve wrapping - https://bugzilla.redhat.com/show_bug.cgi?id=878089 Demonstrating original complaint... [root@rhsm-compat-rhel63 ~]# rpm -q subscription-manager subscription-manager-0.99.19.4-1.el6_3.x86_64 [root@rhsm-compat-rhel63 ~]# subscription-manager --help | egrep "^\s+\w" list List subscription and product information for this machine refresh Pull the latest subscription data from the server register register the client to RHN release Configure what os release to use subscribe Subscribe the registered machine to a specified product unregister unregister the client from RHN unsubscribe Unsubscribe the machine from all or specific subscriptions clean Remove all local consumer and subscription data without affecting the server config List, set, or remove the configuration parameters in use by this machine. environments Display the environments available for a user facts Work with the current facts for this machine identity Display the identity certificate for this machine or request a new one import Import certificates which were provided outside of the tool orgs Display the orgs against which a user can register a system redeem Attempt to redeem a subscription for a preconfigured machine repos List the repos which this machine is entitled to use service-level Manage service levels for this system. ^^^^^^^^ WASTED SPACE HERE IS CONTRIBUTING TO ALL THE UGLY WRAPPED DESCRIPTIONS ON AN 80 CHAR WIDE stty TERMINAL. SOLUTION FROM COMMENT 6 REPLACES THE LEADING TAB WITH TWO HARD SPACES: - print("\t%-14s %s" % (name, cmd.shortdesc)) + print(" %-14s %s" % (name, cmd.shortdesc)) - print("\t%-14s %s" % (name, cmd.shortdesc)) + print(" %-14s %s" % (name, cmd.shortdesc)) Verifying Version... [root@jsefler-6 ~]# rpm -q subscription-manager subscription-manager-1.1.9-1.el6.x86_64 [root@jsefler-6 ~]# subscription-manager --help | egrep "^\s+\w" attach Attach a specified subscription to the registered system list List subscription and product information for this system refresh Pull the latest subscription data from the server register Register this system to the Customer Portal or another subscription management service release Configure which operating system release to use remove Remove all or specific subscriptions from this system unregister Unregister this system from the Customer Portal or another subscription management service clean Remove all local system and subscription data without affecting the server config List, set, or remove the configuration parameters in use by this system environments Display the environments available for a user facts View or update the detected system information identity Display the identity certificate for this system or request a new one import Import certificates which were provided outside of the tool orgs Display the organizations against which a user can register a system redeem Attempt to redeem a subscription for a preconfigured system repos List the repositories which this system is entitled to use service-level Manage service levels for this system subscribe Deprecated, see attach unsubscribe Deprecated, see remove version Print version information ^^ VERIFIED: We now see two hard spaces instead of a tab, but the original complaint prevails. Moving this bug to VERIFIED in favor of bug 878089 which will be the ultimate fix. 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 |