Fix help message of xm info
PATCH 1/1 Fix help message of xm info
Hi,
The help message of xm info does not have a help message of config option.
# xm info --help Usage: xm info
Get information about Xen host.
This patch adds the help message of config option.
# xm info --help Usage: xm info [-c|--config]
Get information about Xen host.
-c, --config List Xend configuration parameters
Signed-off-by Masaki Kanno <[email protected]>
Best regards,
Kan
tools/python/xen/xm/main.py +10 -7
@@ -133,7 +133,7 @@ SUBCOMMAND_HELP = { 'domname' : ('<DomId>', 'Convert a domain id to domain name.'), 'dump-core' : ('[-L|--live] [-C|--crash] <Domain> [Filename]', 'Dump core for a specific domain.'), - 'info' : ('', 'Get information about Xen host.'), + 'info' : ('[-c|--config]', 'Get information about Xen host.'), 'log' : ('', 'Print Xend log'), 'rename' : ('<Domain> <NewDomainName>', 'Rename a domain.'), 'sched-sedf' : ('<Domain> [options]', 'Get/set EDF parameters.'),
@@ -241,17 +241,20 @@ SUBCOMMAND_OPTIONS = { ('-C', '--crash', 'Crash domain after dumping core'), ), 'start': ( - ('-p', '--paused', 'Do not unpause domain after starting it'), - ('-c', '--console_autoconnect', 'Connect to the console after the domain is created'), + ('-p', '--paused', 'Do not unpause domain after starting it'), + ('-c', '--console_autoconnect', 'Connect to the console after the domain is created'), ), 'resume': ( - ('-p', '--paused', 'Do not unpause domain after resuming it'), + ('-p', '--paused', 'Do not unpause domain after resuming it'), ), 'save': ( - ('-c', '--checkpoint', 'Leave domain running after creating snapshot'), + ('-c', '--checkpoint', 'Leave domain running after creating snapshot'), ), - 'restore': ( - ('-p', '--paused', 'Do not unpause domain after restoring it'), + 'restore': ( + ('-p', '--paused', 'Do not unpause domain after restoring it'), + ), + 'info': ( + ('-c', '--config', 'List Xend configuration parameters'), ), }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel