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 /cli/js | |
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 'cli/js')
-rw-r--r-- | cli/js/main.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/js/main.ts b/cli/js/main.ts index 8a0f805a8..005686230 100644 --- a/cli/js/main.ts +++ b/cli/js/main.ts @@ -25,10 +25,8 @@ function denoMain(preserveDenoNamespace = true, name?: string): void { assert(s.mainModule.length > 0); setLocation(s.mainModule); } - log("cwd", s.cwd); - - for (let i = 1; i < s.argv.length; i++) { + for (let i = 0; i < s.argv.length; i++) { args.push(s.argv[i]); } log("args", args); |