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

Unified Diff: git_cache.py

Issue 436963005: Added hyphen-only options (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Fixed options in some calling code Created 6 years, 4 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 | git_cl.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cache.py
diff --git a/git_cache.py b/git_cache.py
index 59bd48cbc0c22a03552e510c77df2fed00ae7195..3d1fb1a63dc038f454bf796e938839d7a446482c 100755
--- a/git_cache.py
+++ b/git_cache.py
@@ -522,7 +522,7 @@ def CMDupdate_bootstrap(parser, args):
# First, we need to ensure the cache is populated.
populate_args = args[:]
- populate_args.append('--no_bootstrap')
+ populate_args.append('--no-bootstrap')
CMDpopulate(parser, populate_args)
# Get the repo directory.
@@ -542,9 +542,11 @@ def CMDpopulate(parser, args):
help='Only cache 10000 commits of history')
parser.add_option('--ref', action='append',
help='Specify additional refs to be fetched')
- parser.add_option('--no_bootstrap', action='store_true',
+ parser.add_option('--no_bootstrap', '--no-bootstrap',
+ action='store_true',
help='Don\'t bootstrap from Google Storage')
- parser.add_option('--ignore_locks', action='store_true',
+ parser.add_option('--ignore_locks', '--ignore-locks',
+ action='store_true',
help='Don\'t try to lock repository')
options, args = parser.parse_args(args)
« no previous file with comments | « no previous file | git_cl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698