| Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/helpcommand.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
|
| similarity index 93%
|
| rename from third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/helpcommand.py
|
| rename to third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
|
| index f3bfa2139cd74659cf5953d22d490b2899be474b..e4dce75bb11213fc572afba52c101037919ef01c 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/helpcommand.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
|
| @@ -57,10 +57,10 @@ class HelpCommand(Command):
|
| else:
|
| epilog = "Common %prog commands:\n"
|
| relevant_commands = filter(self._tool.should_show_in_main_help, self._tool.commands)
|
| - longest_name_length = max(map(lambda command: len(command.name), relevant_commands))
|
| + longest_name_length = max(len(command.name) for command in relevant_commands)
|
| relevant_commands.sort(lambda a, b: cmp(a.name, b.name))
|
| - command_help_texts = map(lambda command: " %s %s\n" % (
|
| - command.name.ljust(longest_name_length), command.help_text), relevant_commands)
|
| + command_help_texts = [" %s %s\n" % (command.name.ljust(longest_name_length), command.help_text)
|
| + for command in relevant_commands]
|
| epilog += "%s\n" % "".join(command_help_texts)
|
| epilog += "See '%prog help --all-commands' to list all commands.\n"
|
| epilog += "See '%prog help COMMAND' for more information on a specific command.\n"
|
|
|