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

Unified Diff: gcl.py

Issue 2857007: Allow gcl help to be run from anywhere... (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: '' Created 10 years, 6 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 50132)
+++ gcl.py (working copy)
@@ -1293,6 +1293,13 @@
def main(argv):
+ if not argv:
+ argv = ['help']
+ command = Command(argv[0])
+ # Help can be run from anywhere.
+ if command == CMDhelp:
+ return command(argv[1:])
+
try:
GetRepositoryRoot()
except gclient_utils.Error:
@@ -1308,9 +1315,6 @@
if not os.path.exists(GetCacheDir()):
os.mkdir(GetCacheDir())
- if not argv:
- argv = ['help']
- command = Command(argv[0])
if command:
return command(argv[1:])
# Unknown command, try to pass that to svn
« 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