ia64/xen-unstable

changeset 11754:efb8b20004b7

[XM] Fix 'xm help' when called on a command-name prefix.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Thu Oct 05 16:17:06 2006 +0100 (2006-10-05)
parents bf0deb09facd
children 56fe7bbcbeaf
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Thu Oct 05 16:14:50 2006 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Thu Oct 05 16:17:06 2006 +0100
     1.3 @@ -291,6 +291,11 @@ all_commands = (domain_commands + host_c
     1.4  def cmdHelp(cmd):
     1.5      """Print help for a specific subcommand."""
     1.6      
     1.7 +    for fc in SUBCOMMAND_HELP.keys():
     1.8 +        if fc[:len(cmd)] == cmd:
     1.9 +            cmd = fc
    1.10 +            break
    1.11 +    
    1.12      try:
    1.13          args, desc = SUBCOMMAND_HELP[cmd]
    1.14      except KeyError: