code / scripts

Lines748 Shell528 Python72 Lua67 Bourne Again Shell62 make15
1 others 4
Markdown4
(9 lines)
1 #!/usr/bin/env python3
2 # Print the arguments that were passed to this script,
3 # as a repr()'d Python list so you can see exactly what
4 # the args were.
5 import sys
6 print(sys.argv)
7 if not sys.stdin.isatty():
8 print("STDIN:")
9 print(repr(sys.stdin.read()))