From 5f45e8f75f8edb124cf857ee3e7ec0b4ec6a1f7f Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Mon, 16 Jan 2012 03:28:26 +0100 Subject: [PATCH] dom0: Mark qvm-run --shutdown as deprecated --- dom0/qvm-tools/qvm-run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-tools/qvm-run b/dom0/qvm-tools/qvm-run index 7b867a7c..47761495 100755 --- a/dom0/qvm-tools/qvm-run +++ b/dom0/qvm-tools/qvm-run @@ -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: