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

Unified Diff: tools/telemetry/telemetry/benchmark_runner.py

Issue 1063443002: [Telemetry] Un-break 'run_benchmark help run' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: tools/telemetry/telemetry/benchmark_runner.py
diff --git a/tools/telemetry/telemetry/benchmark_runner.py b/tools/telemetry/telemetry/benchmark_runner.py
index a9b7ec6a70bc1c58d2f6a756936c633e0be6b6de..96752662e72b8759c7518ab9951a2492ac6d7fd7 100644
--- a/tools/telemetry/telemetry/benchmark_runner.py
+++ b/tools/telemetry/telemetry/benchmark_runner.py
@@ -355,6 +355,11 @@ def main(environment):
command_name = arg
break
+ # TODO(eakuefner): Remove this hack after we port to argparse.
+ if command_name == 'help' and len(sys.argv) > 2 and sys.argv[2] == 'run':
+ command_name = 'run'
+ sys.argv[2] = '--help'
+
# Validate and interpret the command name.
commands = _MatchingCommands(command_name)
if len(commands) > 1:
« 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