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::
212212
213213.. note ::
214214
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,
216216 such as ``with_argument_list ``. ``cmd2 `` will pass your **do_* ** methods a list of arguments in this case.
217217
218218 When using this decorator, you can then put arguments in quotes like so::
219219
220220 $ examples/arg_print.py
221221 (Cmd) lprint foo "bar baz"
222+ lprint was called with the following list of arguments: ['foo', 'bar baz']
222223
223224.. _arg_printer : https://github.com/python-cmd2/cmd2/blob/master/examples/scripts/arg_printer.py
224225
You can’t perform that action at this time.
0 commit comments