Bug 707148 - Remove redundant info from "status --help" command
Summary: Remove redundant info from "status --help" command
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools
Version: 2.0.2
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Jay Dobies
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks: rhui-20
TreeView+ depends on / blocked
 
Reported: 2011-05-24 08:32 UTC by Sachin Ghai
Modified: 2012-03-12 19:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-12 19:39:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sachin Ghai 2011-05-24 08:32:33 UTC
Description of problem:
when we execute the "rhui-manager status --help", it displays the help as :

[root@dhcp193-136 ~]# rhui-manager status --help
Usage: rhui-manager [options]

Options:
  -h, --help  show this help message and exit
  --code      if specified, only a numeric code for the result will be
              displayed
status: RHUI status and health information
    --code - if specified, only a numeric code for the result will be displayed
[root@dhcp193-136 ~]#


here we should remove the first occurrence of "--code", because it makes the command like:

"rhui-manager --code"

and there is no such command.

The actual command is "rhui-manager status --code"

Version-Release number of selected component (if applicable):
pulp 0.171
rhui-tools 2.0.22

How reproducible:
everytime

Steps to Reproduce:
1. rhui-manager status --help

  
Actual results:
-h, --help  show this help message and exit
  --code      if specified, only a numeric code for the result will be
              displayed
status: RHUI status and health information
    --code - if specified, only a numeric code for the result will be displayed
[root@dhcp193-136 ~]#


Expected results:
-h, --help  show this help message and exit

status: RHUI status and health information
    --code - if specified, only a numeric code for the result will be displayed
[root@dhcp193-136 ~]#

Additional info:

Comment 1 Jay Dobies 2011-05-24 12:03:55 UTC
Moved to 2.1.

I agree it's ugly and should be fixed, but the way I'm doing the CLI functionality it's actually a lot more complicated than it appears it should be. I'll try to get some time for the next release to clean it up.

Comment 2 wes hayutin 2011-06-06 21:15:35 UTC
added to rhui-20 tracker

Comment 3 Jay Dobies 2012-01-19 20:42:10 UTC
commit 8b1b800dc8002fac8a936e74b7e1494dd3eddb06
Author: Jay Dobies <jason.dobies>
Date:   Thu Jan 19 15:41:07 2012 -0500

    707148 - Removed duplicate arguments for status

rhui-2.0/tools/src/rhui/common/cli.py

Comment 4 Sachin Ghai 2012-02-08 10:46:04 UTC
Verified with rhui2.0.2 build (RHEL-6.2-RHUI-2.0.2-20120203.1-Server-x86_64-DVD1.iso) having rhui-tools:

rh-rhui-tools-2.0.53-1.el6.noarch


Redundant info is removed.

[root@dhcp201-142 ~]# rhui-manager  status --help
Usage: rhui-manager [options]

Options:
  -h, --help  show this help message and exit
status: RHUI status and health information
    --code - if specified, only a numeric code for the result will be displayed
[root@dhcp201-142 ~]#

Comment 5 James Slagle 2012-03-12 19:39:49 UTC
Released in RHUI 2.0.2


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