WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] use help in create.py for "xm help create"
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 Nov 2005 22:48:12 +0000
Delivery-date: Mon, 21 Nov 2005 22:49:09 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] use help in create.py for "xm help create", Xen patchbot -unstable <=