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>
diff --git a/subcommand.py b/subcommand.py
index c4209e6..4087627 100644
--- a/subcommand.py
+++ b/subcommand.py
@@ -66,7 +66,7 @@
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 @@
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