Skip to main content
Deno.args - Deno documentation
variable Deno.args
Returns the script arguments to the program. Give the following command line invocation of Deno: ```sh deno run --allow-read https://examples.deno.land/command-line-arguments.ts Sushi ``` Then `Deno.args` will contain: ```ts [ "Sushi" ] ``` If you are looking for a structured way to parse arguments, there is [`parseArgs()`](https://jsr.io/@std/cli/doc/parse-args/~/parseArgs) from the Deno Standard Library.

Type

string[]