Bug 707148

Summary: Remove redundant info from "status --help" command
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Sachin Ghai <sghai>
Component: ToolsAssignee: Jay Dobies <jason.dobies>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.0.2CC: jslagle, tsanders
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-12 19:39:49 UTC Type: ---
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: 711223    

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