Mercurial > hg > config
changeset 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 | 4198a58cc520 |
children | 1919706e94f5 |
files | python/stripirssi.py |
diffstat | 1 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/stripirssi.py Sun Jul 21 21:31:53 2013 -0700 @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +import optparse +import os +import sys + +""" +strip irssi comments +""" + +# XXX stub + +here = os.path.dirname(os.path.realpath(__file__)) + +def main(args=sys.argv[1:]): + + usage = '%prog [options]' + parser = optparse.OptionParser(usage=usage, description=__doc__) + parser.add_option('-i', '--in-place', dest='in_place', + help="rewrite files in place") + # parser.add_option - strip timestamps only + # parser.add_option - strip nicks + options, args = parser.parse_args(args) + +if __name__ == '__main__': + main()