Tutorial: micro about exec alias args (#5474)

Replaced too emotional warning.

## For community
⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍
comment**

Co-authored-by: a <1@1.1>
This commit is contained in:
Andy Kipp 2024-06-01 22:35:25 +02:00 committed by GitHub
parent c9046ab3f6
commit 6245e460a6
Failed to generate hash of commit

View file

@ -1316,10 +1316,7 @@ or by the index in ``$arg<n>`` 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