summaryrefslogtreecommitdiff
path: root/docs/freefeatures.rst
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-04-09 22:11:09 -0700
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-04-09 22:11:09 -0700
commit43e6ae2ec979c04a81f7fc992c6b836f09043a92 (patch)
tree39519717b59106faa6e592079755f0f925bafc48 /docs/freefeatures.rst
parent98301d03570f3e2e407c1397641bf2b04eb480ac (diff)
downloadcmd2-git-43e6ae2ec979c04a81f7fc992c6b836f09043a92.tar.gz
Deleted optparse code which had been previously deprecated in 0.8.0 release
Also: - Bumped version to 0.8.4
Diffstat (limited to 'docs/freefeatures.rst')
-rw-r--r--docs/freefeatures.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/freefeatures.rst b/docs/freefeatures.rst
index 8255868c..ec43b043 100644
--- a/docs/freefeatures.rst
+++ b/docs/freefeatures.rst
@@ -213,11 +213,10 @@ of using ``pyscript`` is shown below along with the **examples/arg_printer.py**
.. note::
- If you want to be able to pass arguments with spaces to scripts, then we strongly recommend setting the
- cmd2 global variable ``USE_ARG_LIST`` to ``True`` in your application using the ``set_use_arg_list`` function.
- This passes all arguments to ``@options`` commands as a list of strings instead of a single string.
+ If you want to be able to pass arguments with spaces to scripts, 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.
- Once this option is set, you can then put arguments in quotes like so::
+ When using this decorator, you can then put arguments in quotes like so (NOTE: the ``do_pyscript`` method uses this decorator::
(Cmd) pyscript examples/arg_printer.py hello '23 fnord'
Running Python script 'arg_printer.py' which was called with 2 arguments