dom0: Mark qvm-run --shutdown as deprecated

This commit is contained in:
Marek Marczykowski 2012-01-16 03:28:26 +01:00
parent cd64f8287c
commit 5f45e8f75f

View File

@ -112,7 +112,7 @@ def main():
help="Wait for the VM(s) to shutdown")
parser.add_option ("--shutdown", action="store_true", dest="shutdown", default=False,
help="Do 'xl shutdown' for the VM(s) (can be combined this with --all and --wait)")
help="(deprecated) Do 'xl shutdown' for the VM(s) (can be combined this with --all and --wait)")
parser.add_option ("--pause", action="store_true", dest="pause", default=False,
help="Do 'xl pause' for the VM(s) (can be combined this with --all and --wait)")
@ -135,6 +135,9 @@ def main():
if options.passio:
options.verbose = False
if options.shutdown:
print >>sys.stderr, "WARNING: --shutdown is deprecated. Use qvm-shutdown instead."
if (options.shutdown or options.pause or options.unpause):
takes_cmd_argument = False
else: