mirror of
https://github.com/denoland/deno.git
synced 2025-07-28 23:53:53 +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
|
@ -14,7 +14,7 @@ if (!token) {
|
|||
Deno.exit(1);
|
||||
}
|
||||
|
||||
const parsedArgs = parse(Deno.args.slice(1));
|
||||
const parsedArgs = parse(Deno.args);
|
||||
|
||||
if (parsedArgs._.length === 0) {
|
||||
console.error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue