summaryrefslogtreecommitdiffstats
path: root/tests/cli_tests/wrappager.py
blob: dce86cef70aceb24709f22a669821f21f57342f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python
import sys
import fileinput


def wrappager(boundary):
    print(boundary)
    for line in fileinput.input(files="-"):
        sys.stdout.write(line)
    print(boundary)


if __name__ == "__main__":
    wrappager(sys.argv[1])