File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -212,13 +212,14 @@ of using ``pyscript`` is shown below along with the arg_printer_ script::
212
212
213
213
.. note ::
214
214
215
- If you want to be able to pass arguments with spaces to scripts , then we strongly recommend using one of the decorators,
215
+ If you want to be able to pass arguments with spaces to commands , then we strongly recommend using one of the decorators,
216
216
such as ``with_argument_list ``. ``cmd2 `` will pass your **do_* ** methods a list of arguments in this case.
217
217
218
218
When using this decorator, you can then put arguments in quotes like so::
219
219
220
220
$ examples/arg_print.py
221
221
(Cmd) lprint foo "bar baz"
222
+ lprint was called with the following list of arguments: ['foo', 'bar baz']
222
223
223
224
.. _arg_printer : https://github.com/python-cmd2/cmd2/blob/master/examples/scripts/arg_printer.py
224
225
You can’t perform that action at this time.
0 commit comments