diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-02-21 21:15:04 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-02-21 21:15:04 -0500 |
commit | 163dcad22375eb84ecd8de311c344a9b6630c685 (patch) | |
tree | ff961fea0066112a77d714e74bd17b1e96e5a270 /docs | |
parent | bb376455b46e2fceba21120eba976465ea8d2c5a (diff) | |
download | cmd2-git-163dcad22375eb84ecd8de311c344a9b6630c685.tar.gz |
Updated macro documentation0.9.9
Diffstat (limited to 'docs')
-rw-r--r-- | docs/settingchanges.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/settingchanges.rst b/docs/settingchanges.rst index 1399c9fe..e1c437e4 100644 --- a/docs/settingchanges.rst +++ b/docs/settingchanges.rst @@ -75,10 +75,8 @@ Macros ====== ``cmd2`` provides a feature that is similar to aliases called macros. The major difference between macros and aliases -is that macros are intended to take arguments when called. These can be useful if you need to run a complex command -frequently with different arguments that appear in various parts of the command. - -Arguments are expressed when creating a macro using {#} notation where {1} means the first argument. +is that macros can contain argument placeholders. Arguments are expressed when creating a macro using {#} notation +where {1} means the first argument. The following creates a macro called my_macro that expects two arguments: |