diff --git a/README.md b/README.md index 26c5d4b..88eafc3 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ the following code runs `deno --allow-net example.ts` which is located in `/some ```bash -/some/work/dir$ deno --allow-run --allow-read https://deno.land/x/rhinoder@v1.2.0/mod.ts --allow-net example.ts +/some/work/dir$ deno run --allow-run --allow-read https://deno.land/x/rhinoder@v1.2.0/mod.ts --allow-net example.ts ``` ## Thanks to diff --git a/mod.ts b/mod.ts index be2f644..de2f030 100644 --- a/mod.ts +++ b/mod.ts @@ -1,5 +1,5 @@ function startProcess(args: string[] = []): Deno.Process { - return Deno.run({ cmd: ['deno', ...args] }); + return Deno.run({ cmd: ['deno', 'run', ...args] }); } const throttle = 500;