Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
variable Deno.args

Returns the script arguments to the program.

Give the following command line invocation of Deno:

deno run --allow-read Sushi

Then Deno.args will contain:

[ "Sushi" ]

If you are looking for a structured way to parse arguments, there is parseArgs() from the Deno Standard Library.