args property
Returns the script arguments to the program.
Give the following command line invocation of Deno:
deno run --allow-read https://deno.land/std/examples/cat.ts /etc/passwd
Then Deno.args
will contain:
[ "/etc/passwd" ]
If you are looking for a structured way to parse arguments, there is the
std/flags
module as part of the Deno
standard library.
Implementation
_i2.List<_i2.String> get args => (_i3.getProperty(
this,
'args',
) as _i2.List)
.cast();