From 3bcc6cebffa6fb4cd0c43fd106c8b35cae4ca7db Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Tue, 12 May 2009 22:53:53 +0000 Subject: [PATCH] Pass "gcl help upload" to upload.py. Review URL: http://codereview.chromium.org/113303 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15911 0039d316-1c4b-4281-b951-d872f2087c98 --- gcl.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gcl.py b/gcl.py index 6a33ebc29e..7888e23c6f 100755 --- a/gcl.py +++ b/gcl.py @@ -555,9 +555,13 @@ def Opened(): def Help(argv=None): - if argv and argv[0] == 'try': - TryChange(None, ['--help'], swallow_exception=False) - return + if argv: + if argv[0] == 'try': + TryChange(None, ['--help'], swallow_exception=False) + return + if argv[0] == 'upload': + upload.RealMain(['upload.py', '--help']) + return print ( """GCL is a wrapper for Subversion that simplifies working with groups of files. @@ -615,6 +619,9 @@ Advanced commands: code. To send multiple changes as one path, use a comma-separated list of changenames. --> Use 'gcl help try' for more information! + + gcl help [command] + Print this help menu, or help for the given command if it exists. """) def GetEditor():