##// END OF EJS Templates
Merge pull request #10589 from Carreau/54whatsnew...
Merge pull request #10589 from Carreau/54whatsnew Synchronize and expand what's new on 5.4

File last commit:

r23639:0a183e6b
r23682:b1becba9 merge
Show More
aliasmagicparams-feature.rst
22 lines | 574 B | text/x-rst | RstLexer
/ docs / source / whatsnew / pr / aliasmagicparams-feature.rst

Added the ability to add parameters to alias_magic.

e.g.:

In [2]: %alias_magic hist history --params "-l 2" --line Created %hist as an alias for %history -l 2.

In [3]: hist %alias_magic hist history --params "-l 30" --line %alias_magic hist history --params "-l 2" --line

Previously it was only possible to have an alias attached to a single function, and you would have to pass in the given parameters every time.

e.g.:

In [4]: %alias_magic hist history --line Created %hist as an alias for %history.

In [5]: hist -l 2 hist %alias_magic hist history --line