diff options
author | Ry Dahl <ry@tinyclouds.org> | 2020-01-09 11:37:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 11:37:01 -0700 |
commit | d492c5abe3c7c0716b9695c8a40d0256569d2338 (patch) | |
tree | 15d5d901d3dac3bedefd7258d29a177a2f6ae9a0 /std/prettier | |
parent | c50cab90a05d271013f741768d70c1eda6ef9a10 (diff) |
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
Diffstat (limited to 'std/prettier')
-rwxr-xr-x | std/prettier/main.ts | 2 | ||||
-rw-r--r-- | std/prettier/testdata/echox.ts | 2 |
2 files changed, 2 insertions, 2 deletions
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<void> { } 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); |