ia64/xen-unstable

changeset 10865:7e25295d8d9d

[XM] Print shorthelp of xm shutdown.

# xm shutdown
Error: 'xm shutdown' requires between 1 and 4 arguments.

shutdown <DomId> [-w][-a][-R|-H] Shutdown a domain

# xm shutdown vm1 -w -a -R -H
Error: 'xm shutdown' requires between 1 and 4 arguments.

shutdown <DomId> [-w][-a][-R|-H] Shutdown a domain

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Fri Jul 28 17:36:08 2006 +0100 (2006-07-28)
parents 98ee83ed9d28
children 4833dc75ce4d
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Fri Jul 28 17:35:39 2006 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Fri Jul 28 17:36:08 2006 +0100
     1.3 @@ -569,6 +569,11 @@ def xm_reboot(args):
     1.4      from xen.xm import shutdown
     1.5      shutdown.main(["shutdown", "-R"] + args)
     1.6  
     1.7 +def xm_shutdown(args):
     1.8 +    arg_check(args, "shutdown", 1, 4)
     1.9 +    from xen.xm import shutdown
    1.10 +    shutdown.main(["shutdown"] + args)
    1.11 +
    1.12  def xm_pause(args):
    1.13      arg_check(args, "pause", 1)
    1.14      dom = args[0]
    1.15 @@ -1109,6 +1114,7 @@ commands = {
    1.16      "restore": xm_restore,
    1.17      "save": xm_save,
    1.18      "reboot": xm_reboot,
    1.19 +    "shutdown": xm_shutdown,
    1.20      "list": xm_list,
    1.21      # memory commands
    1.22      "mem-max": xm_mem_max,
    1.23 @@ -1151,7 +1157,6 @@ subcommands = [
    1.24      'create',
    1.25      'migrate',
    1.26      'sysrq',
    1.27 -    'shutdown',
    1.28      'labels',
    1.29      'addlabel',
    1.30      'rmlabel',