direct-io.hg

changeset 7960:b2364dc83d1f

use help in create.py for "xm help create"
author kgrant@localhost.localdomain
date Mon Nov 21 18:53:31 2005 +0100 (2005-11-21)
parents 14886c68f254
children c1c8da6f2afe
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Mon Nov 21 18:52:40 2005 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Mon Nov 21 18:53:31 2005 +0100
     1.3 @@ -182,7 +182,7 @@ For more help on xm create, see the xmdo
     1.4  help = {
     1.5      "--long": longhelp,
     1.6      "console": console_help,
     1.7 -    "create": create_help,
     1.8 +# create is handled specially
     1.9      "destroy": destroy_help,
    1.10      "domid ": domid_help,
    1.11      "domname": domname_help,
    1.12 @@ -846,6 +846,9 @@ def deprecated(old,new):
    1.13      err('Option %s is the new replacement, see "xm help %s" for more info' % (new, new))
    1.14  
    1.15  def usage(cmd=None):
    1.16 +    if cmd = 'create'
    1.17 +        xm_subcommand("create", "--help")
    1.18 +        sys.exit(1)
    1.19      if help.has_key(cmd):
    1.20          print "   " + help[cmd]
    1.21      else: