aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/External-commands.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/External-commands.md')
-rw-r--r--docs/markdown/External-commands.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/markdown/External-commands.md b/docs/markdown/External-commands.md
index 4c8c8e4..cafd280 100644
--- a/docs/markdown/External-commands.md
+++ b/docs/markdown/External-commands.md
@@ -16,7 +16,14 @@ output = r.stdout().strip()
errortxt = r.stderr().strip()
```
-Additionally, since 0.50.0, you can pass the command [`environment`](Reference-manual.html#environment-object) object:
+Since 0.52.0, you can pass the command environment as a dictionary:
+
+```meson
+run_command('command', 'arg1', 'arg2', env: {'FOO': 'bar'})
+```
+
+Since 0.50.0, you can also pass the command
+[`environment`](Reference-manual.html#environment-object) object:
```meson
env = environment()