[XM] Fix 'xm help' when called on a command-name prefix.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-10-05 16:17:06 +01:00
1 parent af51f19f4b
commit 2abd5d1c78
1 file changed
+5
+5
View File
@@ -291,6 +291,11 @@ all_commands = (domain_commands + host_commands + scheduler_commands +
def cmdHelp(cmd):
"""Print help for a specific subcommand."""
for fc in SUBCOMMAND_HELP.keys():
if fc[:len(cmd)] == cmd:
cmd = fc
break
try:
args, desc = SUBCOMMAND_HELP[cmd]
except KeyError:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.