Skip to content

Commit

Permalink
Fixes linkedin#101 - Show help messages for individual commands
Browse files Browse the repository at this point in the history
This fixes the issue with help command. Now help <command>
will show the desired help string for valid commands
  • Loading branch information
djmgit committed Apr 21, 2019
1 parent 0d98bbe commit da75351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kafka/tools/protocol/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def show_help(request_classes, request_cmds, cmd_args):
", ".join([request_classes[request][ver].cmd + "V{0}".format(ver)
for ver in sorted(request_classes[request].keys())])))
print("\nFor more information on a request, type \"help <request>\"")
elif cmd_args[0] in request_cmds:
print(request_cmds[cmd_args[0]].help_string)
elif cmd_args[0].lower() in request_cmds:
print(request_cmds[cmd_args[0].lower()].help_string)
else:
print("{0} is not a valid request".format(cmd_args[0]))

0 comments on commit da75351

Please sign in to comment.