feat(flags): script arguments come after '--' (#3621)

This commit is contained in:
Ry Dahl 2020-01-08 14:59:53 -05:00 committed by GitHub
parent 7d2d442a77
commit 2d5457df15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 79 additions and 83 deletions

View file

@ -217,12 +217,13 @@ test(async function emptyDirPermission(): Promise<void> {
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);