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 1251406 - '-h' is missing in output of bash-completion for 'rhsm-debug system --'
Summary: '-h' is missing in output of bash-completion for 'rhsm-debug system --'
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-07 09:02 UTC by qianzhan
Modified: 2015-08-10 03:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-10 03:14:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description qianzhan 2015-08-07 09:02:33 UTC
Description of problem:
'-h' is missing in output of bash-completion for 'rhsm-debug system --'

Version-Release number of selected component (if applicable):
subscription-manager: 1.15.9-2.el7
python-rhsm: 1.15.4-2.el7


How reproducible:
always

Steps to Reproduce:
1. Check the '-h' options in help
[root@dhcp-128-89 ~]# rhsm-debug system --help
Usage: rhsm-debug system [OPTIONS] 

Assemble system information as a tar file or directory

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
  --destination=DESTINATION
                        the destination location of the result; default is
                        /tmp
  --no-archive          data will be in an uncompressed directory
  --sos                 only data not already included in sos report will be
                        collected
  --no-subscriptions    exclude subscription data (default)
  --subscriptions       include subscription data


2. Execute the bash-completion of 'rhsm-debug system -':
[root@dhcp-128-89 ~]# rhsm-debug system -
--destination       -h                  --help              --no-archive        --no-subscriptions  --proxy             --proxypassword     --proxyuser         --sos               --subscriptions  

3. Execute the bash-completion of 'rhsm-debug system --':
[root@dhcp-128-89 ~]# rhsm-debug system --
--destination       --help              --no-archive        --no-subscriptions  --proxy             --proxypassword     --proxyuser         --sos               --subscriptions



Actual results:
As step 3, '-h' option is missing in bash-completion of 'rhsm-debug system --'

Expected results:
The output of step 3 should be the same with that of step 2.

Additional info:

Comment 2 John Sefler 2015-08-07 12:44:58 UTC
(In reply to qianzhan from comment #0)

> 3. Execute the bash-completion of 'rhsm-debug system --':
> [root@dhcp-128-89 ~]# rhsm-debug system --
> --destination       --help              --no-archive       
> --no-subscriptions  --proxy             --proxypassword     --proxyuser     
> --sos               --subscriptions
> 
> 
> 
> Actual results:
> As step 3, '-h' option is missing in bash-completion of 'rhsm-debug system
> --'
> 
> Expected results:
> The output of step 3 should be the same with that of step 2.
> 


I disagree with these expected results.  Since you typed two dashes, the bash completion should *not* match option "-h" since there is only one dash in the option.  "--" does not match the leading characters in option "-h".

My vote is to move to CLOSED NOTABUG.


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