summaryrefslogtreecommitdiff
path: root/examples/arg_printer.py
Commit message (Collapse)AuthorAgeFilesLines
* Moved example scripts from examples to examples/scripts directlyTodd Leonhardt2017-06-211-8/+0
| | | | | | Cleaned up the examples directory by adding a scripts subdirectory. This makes it a bit clearer which Python files are example cmd2 applications and which are example Python scripts for use with the pyscript command.
* Updated documentation and examplesTodd Leonhardt2017-06-141-1/+3
| | | | | | | | | Added information related to the new pyscript command. The old way of running Python scripts via "py run()" should be considered deprecated. The new "pyscript" command is superior in two significant ways: 1) It supports tab-completion of file system paths 2) It allows the user to pass command-line arguments to scripts
* Added new pyscript commandTodd Leonhardt2017-06-131-0/+6
This command is explicitly for running Python script files within an embedded Python interpreter. The advantages over the py command with "run" are: - Tab-completion of file system paths is supported - Command-line arguments can be passed to the Python script