From e8cd6f4bcfad96b1a81259f4d55584b6fa989610 Mon Sep 17 00:00:00 2001 From: har7an <99636919+har7an@users.noreply.github.com> Date: Wed, 3 Aug 2022 14:56:01 +0000 Subject: [PATCH] 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. --- src/doc/src/reference/config.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/doc/src/reference/config.md b/src/doc/src/reference/config.md index ee330b6e198..d7fe878bdbe 100644 --- a/src/doc/src/reference/config.md +++ b/src/doc/src/reference/config.md @@ -59,6 +59,7 @@ c = "check" t = "test" r = "run" rr = "run --release" +recursive_example = "rr --example recursions" space_example = ["run", "--release", "--", "\"command list\""] [build] @@ -335,6 +336,14 @@ r = "run" Aliases are not allowed to redefine existing built-in commands. +Aliases are recursive: + +```toml +[alias] +rr = "run --release" +recursive_example = "rr --example recursions" +``` + #### `[build]` The `[build]` table controls build-time operations and compiler settings.