mirror of
https://github.com/denoland/deno.git
synced 2024-12-11 10:07:54 -05:00
fe7e3a12ca
This code checks if permission flags are incorrectly defined after the module name (e.g. `deno run mod.ts --allow-read` instead of the correct `deno run --allow-read mod.ts`). If so, a simple warning is displayed.
4 lines
197 B
Text
4 lines
197 B
Text
Permission flags have likely been incorrectly set after the script argument.
|
|
To grant permissions, set them before the script argument. For example:
|
|
deno run --allow-read=. main.js
|
|
Hello World
|