[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xm save: Display help text if bad options specified.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1234435990 0
# Node ID 94e12fa57816c26f8b76061f17c33928be202c85
# Parent  a624353a668d72d3c3397ae19c3437d5173101f9
xm save: Display help text if bad options specified.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xm/main.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r a624353a668d -r 94e12fa57816 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Thu Feb 12 10:52:05 2009 +0000
+++ b/tools/python/xen/xm/main.py       Thu Feb 12 10:53:10 2009 +0000
@@ -739,7 +739,7 @@ def xm_save(args):
         (options, params) = getopt.gnu_getopt(args, 'c', ['checkpoint'])
     except getopt.GetoptError, opterr:
         err(opterr)
-        sys.exit(1)
+        usage('save')
 
     checkpoint = False
     for (k, v) in options:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.