Fix webkit-patch --help.
I believe that after http://crrev.com/2276713002, invoking webkit-patch with --help rather than help was broken. When `webkit-patch help` is invoked, the codepath that's used goes through the execute method of HelpCommand, and the _tool attribute is set, so it worked. But when --help is passed, a different codepath is used, that goes through optparse which directly uses HelpCommand.help_epilog and the _tool attribute was never set. This CL fixes this case by setting the _tool attribute in the constructor of HelpCommand. Review-Url: https://codereview.chromium.org/2385373003 Cr-Commit-Position: refs/heads/master@{#423017}
Showing
Please register or sign in to comment