Skip to content

Commit e8cd6f4

Browse files
committed
Mention that aliases are recursive
Instead of duplicating portions of commands that are used identically across many aliases, the user can instead reuse any previously defined aliases.
1 parent 333478d commit e8cd6f4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/doc/src/reference/config.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ c = "check"
5959
t = "test"
6060
r = "run"
6161
rr = "run --release"
62+
recursive_example = "rr --example recursions"
6263
space_example = ["run", "--release", "--", "\"command list\""]
6364

6465
[build]
@@ -335,6 +336,14 @@ r = "run"
335336

336337
Aliases are not allowed to redefine existing built-in commands.
337338

339+
Aliases are recursive:
340+
341+
```toml
342+
[alias]
343+
rr = "run --release"
344+
recursive_example = "rr --example recursions"
345+
```
346+
338347
#### `[build]`
339348

340349
The `[build]` table controls build-time operations and compiler settings.

0 commit comments

Comments
 (0)