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

Unified Diff: presubmit_support.py

Issue 6698041: Improve presubmit_support main by not stripping arguments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 9 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: presubmit_support.py
diff --git a/presubmit_support.py b/presubmit_support.py
index fc1c7f23b0c09d666c88b2e03cb19eb50b828ba4..22d32d14acc7dc6f74777105751f8fa437966932 100755
--- a/presubmit_support.py
+++ b/presubmit_support.py
@@ -1143,7 +1143,7 @@ def Main(argv):
"system directories will also be searched.")
parser.add_option("--default_presubmit")
parser.add_option("--may_prompt", action='store_true', default=False)
- options, args = parser.parse_args(argv[1:])
+ options, args = parser.parse_args(argv)
if options.verbose:
logging.basicConfig(level=logging.DEBUG)
if os.path.isdir(os.path.join(options.root, '.svn')):
@@ -1194,4 +1194,4 @@ def Main(argv):
if __name__ == '__main__':
- sys.exit(Main(sys.argv))
+ sys.exit(Main(None))
« 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