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

Unified Diff: third_party/WebKit/Source/devtools/scripts/generate_protocol_externs.py

Issue 2158063002: DevTools: generate_protocol_externs.js should accept both protocol files as arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/Source/devtools/scripts/generate_protocol_externs.py
diff --git a/third_party/WebKit/Source/devtools/scripts/generate_protocol_externs.py b/third_party/WebKit/Source/devtools/scripts/generate_protocol_externs.py
index ff2348c0b58680790721cadc354392767aafa16f..d0029c083237d59e2451aa94e1c163f2be95f523 100755
--- a/third_party/WebKit/Source/devtools/scripts/generate_protocol_externs.py
+++ b/third_party/WebKit/Source/devtools/scripts/generate_protocol_externs.py
@@ -238,9 +238,10 @@ if __name__ == "__main__":
import sys
import os.path
program_name = os.path.basename(__file__)
- if len(sys.argv) < 4 or sys.argv[1] != "-o":
- sys.stderr.write("Usage: %s -o OUTPUT_FILE INPUT_FILE\n" % program_name)
+ if len(sys.argv) < 5 or sys.argv[1] != "-o":
+ sys.stderr.write("Usage: %s -o OUTPUT_FILE INPUT_FILE_1 INPUT_FILE_2\n" % program_name)
exit(1)
output_path = sys.argv[2]
- input_path = sys.argv[3]
- generate_protocol_externs(output_path, input_path)
+ input_path_1 = sys.argv[3]
+ input_path_2 = sys.argv[4]
+ generate_protocol_externs(output_path, input_path_1, input_path_2)
« 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