diff options
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/arg_printer.py | 6 | ||||
| -rw-r--r-- | examples/exampleSession.txt | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/examples/arg_printer.py b/examples/arg_printer.py new file mode 100755 index 00000000..42084d4e --- /dev/null +++ b/examples/arg_printer.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +# coding=utf-8 +import sys +print("Running Python script {!r} which was called with {} arguments".format(sys.argv[0], len(sys.argv) - 1)) +for i, arg in enumerate(sys.argv[1:]): + print("arg {}: {!r}".format(i+1, arg)) diff --git a/examples/exampleSession.txt b/examples/exampleSession.txt index 62c130f0..b2cf24c0 100644 --- a/examples/exampleSession.txt +++ b/examples/exampleSession.txt @@ -3,8 +3,9 @@ Documented commands (type help <topic>): ======================================== -_relative_load edit history orate py run say shell show -cmdenvironment help load pause quit save set shortcuts speak +_relative_load help orate pyscript save shell speak +cmdenvironment history pause quit say shortcuts +edit load py run set show (Cmd) help say Repeats what you tell me to. |
