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
diff --git a/gcl.py b/gcl.py
index 6a33ebc..7888e23 100755
--- a/gcl.py
+++ b/gcl.py
@@ -555,9 +555,13 @@
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 @@
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():