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

[Xen-changelog] use help in create.py for "xm help create"



# HG changeset patch
# User kgrant@xxxxxxxxxxxxxxxxxxxxx
# Node ID b2364dc83d1f4eefe6b4b740d26f5505f9bbf00c
# Parent  14886c68f254feb2452f6c7233100afde4e37d33
use help in create.py for "xm help create"

diff -r 14886c68f254 -r b2364dc83d1f tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Mon Nov 21 17:52:40 2005
+++ b/tools/python/xen/xm/main.py       Mon Nov 21 17:53:31 2005
@@ -182,7 +182,7 @@
 help = {
     "--long": longhelp,
     "console": console_help,
-    "create": create_help,
+# create is handled specially
     "destroy": destroy_help,
     "domid ": domid_help,
     "domname": domname_help,
@@ -846,6 +846,9 @@
     err('Option %s is the new replacement, see "xm help %s" for more info' % 
(new, new))
 
 def usage(cmd=None):
+    if cmd = 'create'
+        xm_subcommand("create", "--help")
+        sys.exit(1)
     if help.has_key(cmd):
         print "   " + help[cmd]
     else:

_______________________________________________
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®.