[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix help message printing function



Hi,

When I tested xm commands by short spell, I found a wrong behaviour 
in help message printing function. If xm commands by full spell, 
the help message of the command is printed. But, if xm commands by 
short spell, the short help message is printed.

# xm li No-exist-vm
Error: Domain 'No-exist-vm' does not exist.
Usage: xm <subcommand> [args]

Control, list, and manipulate Xen guest instances.

Common 'xm' commands:

 console              Attach to <Domain>'s console.          
 create               Create a domain based on <ConfigFile>. 
(snip)

# xm list No-exist-vm
Error: Domain 'No-exist-vm' does not exist.
Usage: xm list [options] [Domain, ...]

List information about all/some domains.
  -l, --long                     Output all VM details in SXP
  --label                        Include security labels     


This patch fixes the wrong behaviour.

# xm li No-exist-vm
Error: Domain 'No-exist-vm' does not exist.
Usage: xm list [options] [Domain, ...]

List information about all/some domains.
  -l, --long                     Output all VM details in SXP
  --label                        Include security labels     

# xm list No-exist-vm
Error: Domain 'No-exist-vm' does not exist.
Usage: xm list [options] [Domain, ...]

List information about all/some domains.
  -l, --long                     Output all VM details in SXP
  --label                        Include security labels     


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: cmdHelp.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.