summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/freefeatures.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/freefeatures.rst b/docs/freefeatures.rst
index a34d9fcc..5c246798 100644
--- a/docs/freefeatures.rst
+++ b/docs/freefeatures.rst
@@ -212,13 +212,14 @@ of using ``pyscript`` is shown below along with the arg_printer_ script::
.. note::
- If you want to be able to pass arguments with spaces to scripts, then we strongly recommend using one of the decorators,
+ If you want to be able to pass arguments with spaces to commands, then we strongly recommend using one of the decorators,
such as ``with_argument_list``. ``cmd2`` will pass your **do_*** methods a list of arguments in this case.
When using this decorator, you can then put arguments in quotes like so::
$ examples/arg_print.py
(Cmd) lprint foo "bar baz"
+ lprint was called with the following list of arguments: ['foo', 'bar baz']
.. _arg_printer: https://github.com/python-cmd2/cmd2/blob/master/examples/scripts/arg_printer.py