summaryrefslogtreecommitdiff
path: root/examples/arg_printer.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-21 06:54:58 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-21 06:54:58 -0400
commit98b57f380d4bedbbe9a0eea174075f8c62aea6bd (patch)
tree2b1a212898dfdc14be9f952585fd3c5abed42102 /examples/arg_printer.py
parent1b829f13cfa9460ddb6304d507ea30bfbb31c6e7 (diff)
downloadcmd2-git-98b57f380d4bedbbe9a0eea174075f8c62aea6bd.tar.gz
Moved example scripts from examples to examples/scripts directly
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.
Diffstat (limited to 'examples/arg_printer.py')
-rwxr-xr-xexamples/arg_printer.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/examples/arg_printer.py b/examples/arg_printer.py
deleted file mode 100755
index 848dcf99..00000000
--- a/examples/arg_printer.py
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env python
-# coding=utf-8
-import os
-import sys
-print("Running Python script {!r} which was called with {} arguments".format(os.path.basename(sys.argv[0]),
- len(sys.argv) - 1))
-for i, arg in enumerate(sys.argv[1:]):
- print("arg {}: {!r}".format(i+1, arg))