From 6245e460a6841b1bc51382265e4bb9afa8c9ec58 Mon Sep 17 00:00:00 2001 From: Andy Kipp Date: Sat, 1 Jun 2024 22:35:25 +0200 Subject: [PATCH] Tutorial: micro about exec alias args (#5474) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced too emotional warning. ## For community ⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment** Co-authored-by: a <1@1.1> --- docs/tutorial.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 7cc85daf9..c049ce50a 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -1316,10 +1316,7 @@ or by the index in ``$arg`` environment variables. >>> aliases['piu'] = 'pip install -U @($args)' >>> aliases['cdls'] = 'cd $arg0 && ls' -.. warning:: That means, if you need ``@()`` in your alias, you can't rely on - automatic argument handling anymore. Any alias involving it needs - to add ``$args`` at the end manually if you don't want your alias - to ignore supplied arguments. +.. warning:: You need to add ``@($args)`` manually if you need arguments. .. code-block:: xonshcon