ia64/xen-unstable

changeset 12188:f9446aa6c786

[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 07d3c36df515
children cc6f0a3596fc
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Sat Oct 28 17:45:43 2006 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Thu Oct 05 16:17:06 2006 +0100
     1.3 @@ -310,6 +310,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: