From a913b7a1ba67849464d0314eee9851f59c22556b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 4 May 2020 13:03:30 +0200 Subject: BREAKING: remove CLI 'deno script.ts' hack (#5026) This PR removes the hack in CLI that allows to run scripts with shorthand: deno script.ts. Removing this functionality because it hacks around short-comings of clap our CLI parser. We agree that this shorthand syntax is desirable, but it needs to be rethinked and reimplemented. For 1.0 we should go with conservative approach that is correct. --- tools/benchmark.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'tools') diff --git a/tools/benchmark.py b/tools/benchmark.py index a921feaf8..9485d79f4 100755 --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -20,15 +20,16 @@ import http_server # The list of the tuples of the benchmark name and arguments exec_time_benchmarks = [ - ("hello", ["cli/tests/002_hello.ts"]), - ("relative_import", ["cli/tests/003_relative_import.ts"]), - ("error_001", ["cli/tests/error_001.ts"]), - ("cold_hello", ["--reload", "cli/tests/002_hello.ts"]), - ("cold_relative_import", ["--reload", "cli/tests/003_relative_import.ts"]), - ("workers_startup", ["cli/tests/workers_startup_bench.ts"]), - ("workers_round_robin", ["cli/tests/workers_round_robin_bench.ts"]), - ("text_decoder", ["cli/tests/text_decoder_perf.js"]), - ("text_encoder", ["cli/tests/text_encoder_perf.js"]), + ("hello", ["run", "cli/tests/002_hello.ts"]), + ("relative_import", ["run", "cli/tests/003_relative_import.ts"]), + ("error_001", ["run", "cli/tests/error_001.ts"]), + ("cold_hello", ["run", "--reload", "cli/tests/002_hello.ts"]), + ("cold_relative_import", + ["run", "--reload", "cli/tests/003_relative_import.ts"]), + ("workers_startup", ["run", "cli/tests/workers_startup_bench.ts"]), + ("workers_round_robin", ["run", "cli/tests/workers_round_robin_bench.ts"]), + ("text_decoder", ["run", "cli/tests/text_decoder_perf.js"]), + ("text_encoder", ["run", "cli/tests/text_encoder_perf.js"]), ] -- cgit v1.2.3