diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/freefeatures.rst | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/freefeatures.rst b/docs/freefeatures.rst index 9e8c2cbf..a34d9fcc 100644 --- a/docs/freefeatures.rst +++ b/docs/freefeatures.rst @@ -215,12 +215,10 @@ of using ``pyscript`` is shown below along with the arg_printer_ script:: 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. - When using this decorator, you can then put arguments in quotes like so (NOTE: the ``do_pyscript`` method uses this decorator:: + When using this decorator, you can then put arguments in quotes like so:: - (Cmd) pyscript examples/scripts/arg_printer.py hello '23 fnord' - Running Python script 'arg_printer.py' which was called with 2 arguments - arg 1: 'hello' - arg 2: '23 fnord' + $ examples/arg_print.py + (Cmd) lprint foo "bar baz" .. _arg_printer: https://github.com/python-cmd2/cmd2/blob/master/examples/scripts/arg_printer.py |