Bug 676976

Summary: Virt-top --help option can be improved
Product: Red Hat Enterprise Linux 6 Reporter: koka xiong <kxiong>
Component: virt-topAssignee: Richard W.M. Jones <rjones>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 6.1CC: dyuan, kxiong, llim, mbooth, mzhan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-11 13:48:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description koka xiong 2011-02-12 07:22:25 UTC
Description of problem:
run virt-top --help
Notice the 
   -help            Display this list of options
  --help            Display this list of options
It can be improved
the  -help             Display this list of options should be changed to 
     -h                 Display this list of options
Version-Release number of selected component (if applicable):
virt-top-1.0.4-3.7.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.Run virt-top --help or virt-top -h
2.It display help options
.........
  -help             Display this list of options
  --help            Display this list of options

3.Notice the -help line I think the -help is not correct,
It should be changed to 
-h  Display this list of options

Actual results:


Expected results:


Additional info:

Comment 2 Richard W.M. Jones 2011-03-08 08:27:09 UTC
Since this is not serious, I'm moving it to 6.2.

Comment 4 Richard W.M. Jones 2011-08-11 13:48:38 UTC
I don't think this bug report is correct.

$ virt-top -h
virt-top: unknown option `-h'.
[help output]

$ virt-top -help
[help output]

$ virt-top --help
[help output]

$ virt-top --foo
virt-top: unknown option `--foo'.
[help output]

So the help output is correct that -help and --help are
both acceptable.  -h, --foo and other unknown input shows
an error, and then shows the help output.