From a4dde552de8fced4cfdff7f0127b51e1d2eabca5 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Wed, 15 Jan 2020 19:21:35 -0500 Subject: Revert "feat(flags): script arguments come after '--'" (#3681) Due to complaints about ergonomics and because it breaks shebang on linux. This reverts commit 2d5457df15d8c4a81362bb2d185b5c6013faa1d8. BREAKING CHANGE --- tools/throughput_benchmark.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/throughput_benchmark.py') diff --git a/tools/throughput_benchmark.py b/tools/throughput_benchmark.py index 4e285a7b8..f46503193 100755 --- a/tools/throughput_benchmark.py +++ b/tools/throughput_benchmark.py @@ -21,7 +21,7 @@ def cat(deno_exe, megs): size = megs * MB start = time.time() cmd = deno_exe + " run --allow-read " - cmd += "tests/cat.ts -- /dev/zero | head -c %s " % size + cmd += "tests/cat.ts /dev/zero | head -c %s " % size print cmd subprocess.check_output(cmd, shell=True) end = time.time() @@ -32,8 +32,7 @@ def tcp(deno_exe, megs): size = megs * MB # Run deno echo server in the background. args = [ - deno_exe, "run", "--allow-net", "tests/echo_server.ts", "--", - SERVER_ADDR + deno_exe, "run", "--allow-net", "tests/echo_server.ts", SERVER_ADDR ] print args echo_server = subprocess.Popen(args) -- cgit v1.2.3