mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 02:22:40 +00:00
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
This commit is contained in:
parent
c50cab90a0
commit
d492c5abe3
22 changed files with 29 additions and 28 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue