[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>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-07-28 17:36:08 +01:00
1 parent 87f45629c6
commit e489d9a4e9
1 file changed
+6 -1
+6 -1
View File
@@ -569,6 +569,11 @@ def xm_reboot(args):
from xen.xm import shutdown
shutdown.main(["shutdown", "-R"] + args)
def xm_shutdown(args):
arg_check(args, "shutdown", 1, 4)
from xen.xm import shutdown
shutdown.main(["shutdown"] + args)
def xm_pause(args):
arg_check(args, "pause", 1)
dom = args[0]
@@ -1109,6 +1114,7 @@ commands = {
"restore": xm_restore,
"save": xm_save,
"reboot": xm_reboot,
"shutdown": xm_shutdown,
"list": xm_list,
# memory commands
"mem-max": xm_mem_max,
@@ -1151,7 +1157,6 @@ subcommands = [
'create',
'migrate',
'sysrq',
'shutdown',
'labels',
'addlabel',
'rmlabel',
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.