Fix help messages of xm vcpu-list/uptime
PATCH 1/1 Fix help messages of xm vcpu-list/uptime
Hi,
We can give multiple domains to the following commands. But, the help messages of the commands are explained to be able to give a single domain.
# xm vcpu-list vm1 vm2 Name ID VCPU CPU State Time(s) CPU Affinity vm1 1 0 0 r-- 1409.3 any cpu vm2 2 0 0 r-- 1255.8 any cpu # xm vcpu-list --help Usage: xm vcpu-list [<Domain>]
List the VCPUs for a domain or all domains.
# xm uptime vm1 vm2 Name ID Uptime vm1 1 0:24:03 vm2 2 0:21:32 # xm uptime --help Usage: xm uptime [-s] <Domain>
Print uptime for a domain.
This patch fixes the help messages of the commands like the help message of xm list command.
# xm vcpu-list --help Usage: xm vcpu-list [Domain, ...]
List the VCPUs for all/some domains.
# xm uptime --help Usage: xm uptime [-s] [Domain, ...]
Print uptime for all/some domains.
Signed-off-by Masaki Kanno <[email protected]>
Best regards,
Kan
tools/python/xen/xm/main.py +4 -3
@@ -114,7 +114,8 @@ SUBCOMMAND_HELP = { 'shutdown' : ('<Domain> [-waRH]', 'Shutdown a domain.'), 'top' : ('', 'Monitor a host and the domains in real time.'), 'unpause' : ('<Domain>', 'Unpause a paused domain.'), - 'uptime' : ('[-s] <Domain>', 'Print uptime for a domain.'), + 'uptime' : ('[-s] [Domain, ...]', + 'Print uptime for all/some domains.'), # Life cycle xm commands 'new' : ('<ConfigFile> [options] [vars]',
@@ -143,8 +144,8 @@ SUBCOMMAND_HELP = { 'debug-keys' : ('<Keys>', 'Send debug keys to Xen.'), 'trigger' : ('<Domain> <nmi|reset|init> [<VCPU>]', 'Send a trigger to a domain.'), - 'vcpu-list' : ('[<Domain>]', - 'List the VCPUs for a domain or all domains.'), + 'vcpu-list' : ('[Domain, ...]', + 'List the VCPUs for all/some domains.'), 'vcpu-pin' : ('<Domain> <VCPU|all> <CPUs|all>', 'Set which CPUs a VCPU can use.'), 'vcpu-set' : ('<Domain> <vCPUs>',
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel