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(): |