From d492c5abe3c7c0716b9695c8a40d0256569d2338 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Thu, 9 Jan 2020 11:37:01 -0700 Subject: feat: Deno.args now does not include script (#3628) Previously Deno.args was ["script.js", "arg1", "arg2"] Now it is just ["arg1", "arg2"] BREAKING CHANGE --- std/prettier/main.ts | 2 +- std/prettier/testdata/echox.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'std/prettier') diff --git a/std/prettier/main.ts b/std/prettier/main.ts index 248aff9a0..a61faa975 100755 --- a/std/prettier/main.ts +++ b/std/prettier/main.ts @@ -565,7 +565,7 @@ async function main(opts): Promise { } main( - parse(args.slice(1), { + parse(args, { string: [ "ignore", "ignore-path", diff --git a/std/prettier/testdata/echox.ts b/std/prettier/testdata/echox.ts index 68c54b999..5f8306b37 100644 --- a/std/prettier/testdata/echox.ts +++ b/std/prettier/testdata/echox.ts @@ -5,4 +5,4 @@ async function echox(args: string[]) { Deno.exit(0); } -echox(Deno.args.slice(1)); +echox(Deno.args); -- cgit v1.2.3