mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
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:
parent
c9046ab3f6
commit
6245e460a6
1 changed files with 1 additions and 4 deletions
|
@ -1316,10 +1316,7 @@ or by the index in ``$arg<n>`` environment variables.
|
||||||
>>> aliases['piu'] = 'pip install -U @($args)'
|
>>> aliases['piu'] = 'pip install -U @($args)'
|
||||||
>>> aliases['cdls'] = 'cd $arg0 && ls'
|
>>> aliases['cdls'] = 'cd $arg0 && ls'
|
||||||
|
|
||||||
.. warning:: That means, if you need ``@()`` in your alias, you can't rely on
|
.. warning:: You need to add ``@($args)`` manually if you need arguments.
|
||||||
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.
|
|
||||||
|
|
||||||
.. code-block:: xonshcon
|
.. code-block:: xonshcon
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue