Skip to content

Commit 5b92db1

Browse files
committed
Updated CodeOwners file and fixed minor errors in freefeatures.rst
1 parent d526c06 commit 5b92db1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# cmd2 code
1717
cmd2/__init__.py @tleonhardt @kotfu
1818
cmd2/argparse_completer.py @anselor @kmvanbrunt
19+
cmd2/clipboard.py @tleonhardt
1920
cmd2/cmd2.py @tleonhardt @kmvanbrunt @kotfu
2021
cmd2/constants.py @kotfu
2122
cmd2/parsing.py @kotfu @kmvanbrunt

docs/freefeatures.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
4240
Startup Initialization Script
4341
=============================
4442
You 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

203201
There 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

225224
IPython (optional)
226225
==================

0 commit comments

Comments
 (0)