mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
[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:
1 parent
87f45629c6
commit
e489d9a4e9
1 file changed
+6
-1
@@ -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',
|
||||
|
||||