Run spellchecker on depot_tools

This was made by running `codespell` and `scspell`
and then checking the results.

Change-Id: I169fd5b40294f83015075b4a899fbca263821f25
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2144602
Commit-Queue: Quinten Yearsley <qyearsley@chromium.org>
Auto-Submit: Quinten Yearsley <qyearsley@chromium.org>
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
This commit is contained in:
Quinten Yearsley
2020-04-13 17:49:39 +00:00
committed by LUCI CQ
parent 4f3aff5fc2
commit 925cedba7b
36 changed files with 59 additions and 58 deletions

View File

@@ -66,7 +66,7 @@ def epilog(text):
def CMDhelp(parser, args):
"""Prints list of commands or help for a specific command."""
# This is the default help implementation. It can be disabled or overriden if
# This is the default help implementation. It can be disabled or overridden if
# wanted.
if not any(i in ('-h', '--help') for i in args):
args = args + ['--help']
@@ -235,14 +235,14 @@ class CommandDispatcher(object):
if args:
if args[0] in ('-h', '--help') and len(args) > 1:
# Inverse the argument order so 'tool --help cmd' is rewritten to
# Reverse the argument order so 'tool --help cmd' is rewritten to
# 'tool cmd --help'.
args = [args[1], args[0]] + args[2:]
command = self.find_nearest_command(args[0])
if command:
if command.__name__ == 'CMDhelp' and len(args) > 1:
# Inverse the arguments order so 'tool help cmd' is rewritten to
# 'tool cmd --help'. Do it here since we want 'tool hel cmd' to work
# Reverse the argument order so 'tool help cmd' is rewritten to
# 'tool cmd --help'. Do it here since we want 'tool help cmd' to work
# too.
args = [args[1], '--help'] + args[2:]
command = self.find_nearest_command(args[0]) or command