aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/cli/run.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/cli/run.md b/docs/cli/run.md
index 59818980b..5172f0fa4 100644
--- a/docs/cli/run.md
+++ b/docs/cli/run.md
@@ -64,6 +64,17 @@ To run a file in watch mode, use the `--watch` flag.
$ bun --watch run index.tsx
```
+{% callout %}
+**Note** — When using `bun run`, put Bun flags like `--watch` immediately after `bun`.
+
+```bash
+$ bun --watch run dev # ✔️ do this
+$ bun run dev --watch # ❌ don't do this
+```
+
+Flags that occur at the end of the command will be ignores and passed through to the `"dev"` script itself.
+{% /callout %}
+
### `--smol`
In memory-constrained environments, use the `--smol` flag to reduce memory usage at a cost to performance.