Bug 676976 - Virt-top --help option can be improved
Summary: Virt-top --help option can be improved
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-top
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-12 07:22 UTC by koka xiong
Modified: 2011-08-11 13:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-11 13:48:38 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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