Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: gcl.py

Issue 113303: Pass "gcl help upload" to upload.py. (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcl.py
===================================================================
--- gcl.py (revision 15896)
+++ gcl.py (working copy)
@@ -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
Lei Zhang 2009/05/12 21:25:45 Remove return and change if below to elif?
Evan Stade 2009/05/12 21:53:20 but then it would print two helps...
Lei Zhang 2009/05/12 22:07:24 n/m, I have tunnel vision.
+ 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():
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698