From 2d5457df15d8c4a81362bb2d185b5c6013faa1d8 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Wed, 8 Jan 2020 14:59:53 -0500 Subject: feat(flags): script arguments come after '--' (#3621) --- std/xeval/test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/xeval/test.ts') diff --git a/std/xeval/test.ts b/std/xeval/test.ts index f6dd70696..30ac6af01 100644 --- a/std/xeval/test.ts +++ b/std/xeval/test.ts @@ -25,7 +25,7 @@ const modTsUrl = import.meta.url.replace(/test.ts$/, "mod.ts"); test(async function xevalCliReplvar(): Promise { const p = run({ - args: [execPath(), modTsUrl, "--replvar=abc", "console.log(abc)"], + args: [execPath(), modTsUrl, "--", "--replvar=abc", "console.log(abc)"], stdin: "piped", stdout: "piped", stderr: "null" @@ -38,7 +38,7 @@ test(async function xevalCliReplvar(): Promise { test(async function xevalCliSyntaxError(): Promise { const p = run({ - args: [execPath(), modTsUrl, "("], + args: [execPath(), modTsUrl, "--", "("], stdin: "null", stdout: "piped", stderr: "piped" -- cgit v1.2.3