comparison textshaper/main.py @ 9:71fb16088d54

add file for indentation; wth did my work go??? :(
author Jeff Hammel <k0scist@gmail.com>
date Fri, 17 Jan 2014 18:17:59 -0800
parents 0a800613af9a
children 5b70bbff04b1
comparison
equal deleted inserted replaced
8:22c830449604 9:71fb16088d54
17 nlines = len(content.splitlines()) 17 nlines = len(content.splitlines())
18 print '%d lines' % nlines 18 print '%d lines' % nlines
19 19
20 def add_options(parser): 20 def add_options(parser):
21 """add options to the OptionParser instance""" 21 """add options to the OptionParser instance"""
22
23 # TODO
24 # parser.add_option('-c', '--clip', '--copy', dest='copy_to_clipboard',
25 # help="copy to given program on exit")
22 26
23 def main(args=sys.argv[1:]): 27 def main(args=sys.argv[1:]):
24 28
25 # parse command line options 29 # parse command line options
26 usage = '%prog [options] ...' 30 usage = '%prog [options] ...'