xm: Fix cmdHelp() for xm reset

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2008-04-25 13:40:05 +01:00
1 parent 6e128c6f3d
commit 17da362de7
1 file changed
+5 -4
+5 -4
View File
@@ -417,10 +417,11 @@ server = None
def cmdHelp(cmd):
"""Print help for a specific subcommand."""
for fc in SUBCOMMAND_HELP.keys():
if fc[:len(cmd)] == cmd:
cmd = fc
break
if not SUBCOMMAND_HELP.has_key(cmd):
for fc in SUBCOMMAND_HELP.keys():
if fc[:len(cmd)] == cmd:
cmd = fc
break
try:
args, desc = SUBCOMMAND_HELP[cmd]
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.