comparison python/stripirssi.py @ 371:0f679925616d

add stub to strip irssi timestamps, comments; should be part of textshaper: http://k0s.org/portfolio/ideas/textshaper.py
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 21 Jul 2013 21:31:53 -0700
parents
children 364ddd44fd82
comparison
equal deleted inserted replaced
370:4198a58cc520 371:0f679925616d
1 #!/usr/bin/env python
2
3 import optparse
4 import os
5 import sys
6
7 """
8 strip irssi comments
9 """
10
11 # XXX stub
12
13 here = os.path.dirname(os.path.realpath(__file__))
14
15 def main(args=sys.argv[1:]):
16
17 usage = '%prog [options]'
18 parser = optparse.OptionParser(usage=usage, description=__doc__)
19 parser.add_option('-i', '--in-place', dest='in_place',
20 help="rewrite files in place")
21 # parser.add_option - strip timestamps only
22 # parser.add_option - strip nicks
23 options, args = parser.parse_args(args)
24
25 if __name__ == '__main__':
26 main()