Mercurial > hg > config
view python/stripirssi.py @ 378:0e99d3a68066
notes to self....that didnt quite do what we wanted :(
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 24 Jul 2013 19:36:46 -0700 |
parents | 0f679925616d |
children | 364ddd44fd82 |
line wrap: on
line source
#!/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()