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 --- std/fs/empty_dir_test.ts | 3 +-- std/fs/exists_test.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'std/fs') diff --git a/std/fs/empty_dir_test.ts b/std/fs/empty_dir_test.ts index 1c1e6f34d..55fdb52dc 100644 --- a/std/fs/empty_dir_test.ts +++ b/std/fs/empty_dir_test.ts @@ -217,13 +217,12 @@ test(async function emptyDirPermission(): Promise { args.push( path.join(testdataDir, s.async ? "empty_dir.ts" : "empty_dir_sync.ts") ); - args.push("--"); args.push("testfolder"); const { stdout } = Deno.run({ stdout: "piped", cwd: testdataDir, - args + args: args }); const output = await Deno.readAll(stdout); diff --git a/std/fs/exists_test.ts b/std/fs/exists_test.ts index 8e9381ed2..b8c968a02 100644 --- a/std/fs/exists_test.ts +++ b/std/fs/exists_test.ts @@ -124,7 +124,6 @@ test(async function existsPermission(): Promise { } args.push(path.join(testdataDir, s.async ? "exists.ts" : "exists_sync.ts")); - args.push("--"); args.push(s.file); const { stdout } = Deno.run({ -- cgit v1.2.3