@@ -37,8 +37,6 @@ Comments can be useful in :ref:`scripts`, but would be pointless within an inter
3737 (Cmd) # this is a comment
3838 (Cmd) this # is not a comment
3939
40- .. _arg_print : https://github.com/python-cmd2/cmd2/blob/master/examples/arg_print.py
41-
4240Startup Initialization Script
4341=============================
4442You can load and execute commands from a startup initialization script by passing a file path to the ``startup_script ``
@@ -201,9 +199,9 @@ is superior for doing this in two primary ways:
201199- it has the ability to pass command-line arguments to the scripts invoked
202200
203201There are no disadvantages to using ``pyscript `` as opposed to ``py run() ``. A simple example
204- of using ``pyscript `` is shown below along with the ** examples/arg_printer.py ** script::
202+ of using ``pyscript `` is shown below along with the arg_printer _ script::
205203
206- (Cmd) pyscript examples/arg_printer.py foo bar baz
204+ (Cmd) pyscript examples/scripts/ arg_printer.py foo bar baz
207205 Running Python script 'arg_printer.py' which was called with 3 arguments
208206 arg 1: 'foo'
209207 arg 2: 'bar'
@@ -216,11 +214,12 @@ of using ``pyscript`` is shown below along with the **examples/arg_printer.py**
216214
217215 When using this decorator, you can then put arguments in quotes like so (NOTE: the ``do_pyscript `` method uses this decorator::
218216
219- (Cmd) pyscript examples/arg_printer.py hello '23 fnord'
217+ (Cmd) pyscript examples/scripts/ arg_printer.py hello '23 fnord'
220218 Running Python script 'arg_printer.py' which was called with 2 arguments
221219 arg 1: 'hello'
222220 arg 2: '23 fnord'
223221
222+ .. _arg_printer : https://github.com/python-cmd2/cmd2/blob/master/examples/scripts/arg_printer.py
224223
225224IPython (optional)
226225==================
0 commit comments