comparison textshaper/main.py @ 3:925a7959cd0b

stub
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 23 Sep 2013 00:04:00 -0700
parents 53cfd6e1ad0f
children 26bb5e99f76c
comparison
equal deleted inserted replaced
2:e5adf3414c6b 3:925a7959cd0b
7 7
8 import optparse 8 import optparse
9 import os 9 import os
10 import subprocess 10 import subprocess
11 import sys 11 import sys
12 import time
12 13
13 def add_options(parser): 14 def add_options(parser):
14 """add options to the OptionParser instance""" 15 """add options to the OptionParser instance"""
15 16
16 def main(args=sys.argv[1:]): 17 def main(args=sys.argv[1:]):
25 else: 26 else:
26 return '' 27 return ''
27 parser = optparse.OptionParser(usage=usage, description=__doc__, formatter=PlainDescriptionFormatter()) 28 parser = optparse.OptionParser(usage=usage, description=__doc__, formatter=PlainDescriptionFormatter())
28 options, args = parser.parse_args(args) 29 options, args = parser.parse_args(args)
29 30
31 # read from stdin
32 content = sys.stdin.read()
33
34 # print formatted content
35 print content
36
37 while True:
38 time.sleep(1) # XXX
39
30 if __name__ == '__main__': 40 if __name__ == '__main__':
31 main() 41 main()
32 42