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 1030996 - Need better usage help text for --add and --remove options of repo-override command
Summary: Need better usage help text for --add and --remove options of repo-override c...
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: Michael Stead
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2013-11-15 13:02 UTC by Rehana
Modified: 2014-06-18 00:28 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 10:08:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rehana 2013-11-15 13:02:36 UTC
Description of problem:


Version-Release number of selected component (if applicable):
subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.33-1
subscription-manager: 1.10.7-1.el7
python-rhsm: 1.10.6-1.el7

How reproducible:
3/3

Steps to Reproduce:
1.subscription-manager repo-override --add=test:enable
Error: You must specify a repository to modify
2.
[root@dhcp70-124 product]# subscription-manager repo-override --remove=test
Error: You must specify a repository to modify
3.

Actual results:
the help text for above mentioned commands are

  --remove=NAME         name of the override to remove (can be specified more
                        than once)
  --add=NAME:VALUE      name and value of the option to override separated by
                        a colon (can be specified more than once)

Expected results:
It will be good to mention the usage for the above commands along with the helptext
ex:
--remove=NAME         name of the override to remove (can be specified more
                        than once), used with --repo option
                        than once)
  --add=NAME:VALUE      name and value of the option to override separated by
                        a colon (can be specified more than once), used with 
                        --repo option

Additional info:

Comment 1 Michael Stead 2013-11-26 14:18:51 UTC
Fixed in PR:
https://github.com/candlepin/subscription-manager/pull/827

Available in:
subscription-manager-1.10.8-1+

Comment 3 John Sefler 2013-12-06 22:21:46 UTC
Verifying Version....
[root@jsefler-7 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.8.33-1
subscription-manager: 1.10.8-1.el7
python-rhsm: 1.10.8-1.el7


[root@jsefler-7 ~]# subscription-manager repo-override --help
Usage: subscription-manager repo-override [OPTIONS]

Manage custom content repository settings

Options:
  -h, --help            show this help message and exit
  --proxy=PROXY_URL     proxy URL in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for HTTP proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for HTTP proxy with basic authentication
  --repo=REPOID         repository to modify (can be specified more than once)
  --remove=NAME         name of the override to remove (can be specified more
                        than once); used with --repo option.
  --add=NAME:VALUE      name and value of the option to override separated by
                        a colon (can be specified more than once); used with
                        --repo option.
  --remove-all          remove all overrides; can be specific to a repository
                        by providing --repo
  --list                list all overrides; can be specific to a repository by
                        providing --repo

VERIFIED: The clause "used with --repo option" has been appended to the help text for options --add and --remove

Comment 4 Ludek Smid 2014-06-13 10:08:38 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.