Add git cl lol.

Because everyone needs humour.

Fix a small bug in subcommands.py with undocumented commands.

R=stip@chromium.org
BUG=

Review URL: https://codereview.chromium.org/554123003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@291867 0039d316-1c4b-4281-b951-d872f2087c98
changes/01/332501/1
maruel@chromium.org 11 years ago
parent 7b1cb6f56d
commit 29404b59d2

@ -2775,6 +2775,29 @@ def CMDformat(parser, args):
return 0
def CMDlol(parser, args):
# This command is intentionally undocumented.
print(""" / /
(\/_//`)
/ '/
0 0 \
/ \
/ __/ \
/, _/ \ \_
`-./ ) | ~^~^~^~^~^~^~^~\~.
( / \_}
| / |
; | \ /
\/ ,/ \ |
/ /~~|~|~~~~~~|~|\ |
/ / | | | | `\ \
/ / | | | | \ \
/ ( | | | | \ \
jgs /,_) /__) /__) /,_/
'''''"""""'''""""""'''""""""''"""""''''' """)
return 0
class OptionParser(optparse.OptionParser):
"""Creates the option parse and add --verbose support."""
def __init__(self, *args, **kwargs):

@ -192,7 +192,7 @@ class CommandDispatcher(object):
rest = textwrap.dedent('\n'.join(lines[1:]))
parser.description = '\n'.join((lines[0], rest))
else:
parser.description = lines[0]
parser.description = lines[0] if lines else ''
if parser.description:
parser.description += '\n'
parser.epilog = getattr(command, 'epilog', None)

Loading…
Cancel
Save