Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py

Issue 2276713002: Remove Command.bind_to_tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
index e4dce75bb11213fc572afba52c101037919ef01c..9f8d1b907d9b341ddbcd42cf90d631f3f8e81d2b 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/help_command.py
@@ -48,6 +48,7 @@ class HelpCommand(Command):
super(HelpCommand, self).__init__(options)
# A hack used to pass --all-commands to _help_epilog even though it's called by the OptionParser.
self.show_all_commands = False
+ self._tool = None
def _help_epilog(self):
# Only show commands which are relevant to this checkout's SCM system. Might this be confusing to some users?
@@ -72,6 +73,7 @@ class HelpCommand(Command):
self.option_parser.remove_option(option.get_opt_string())
def execute(self, options, args, tool):
+ self._tool = tool
if args:
command = self._tool.command_by_name(args[0])
if command:

Powered by Google App Engine
This is Rietveld 408576698