summaryrefslogtreecommitdiff
path: root/std/manual.md
diff options
context:
space:
mode:
authorAkshat Agarwal <humancalico@disroot.org>2020-03-22 03:14:18 +0530
committerGitHub <noreply@github.com>2020-03-21 17:44:18 -0400
commitb8a5c29bf8e04bb6210080a05ce34e9a8d1d1496 (patch)
tree4e5788c62165789b12c77534923db9dd2d2c57a3 /std/manual.md
parentb191c919f3bde46fe7e0112a33f060715b50b9a4 (diff)
BREAKING CHANGE Rename Deno.run's args to cmd (#4444)
This is to avoid confusion with Deno.args which does not include the executable to be run.
Diffstat (limited to 'std/manual.md')
-rw-r--r--std/manual.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/manual.md b/std/manual.md
index 3d74259ef..fa813a929 100644
--- a/std/manual.md
+++ b/std/manual.md
@@ -366,7 +366,7 @@ Example:
```ts
// create subprocess
const p = Deno.run({
- args: ["echo", "hello"]
+ cmd: ["echo", "hello"]
});
// await its completion
@@ -393,7 +393,7 @@ you can use `"piped"` option.
const fileNames = Deno.args;
const p = Deno.run({
- args: [
+ cmd: [
"deno",
"run",
"--allow-read",