Mercurial > hg > TextShaper
comparison textshaper/indent.py @ 11:0d0db0d79bfd
STUB: textshaper/indent.py
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 18 Jan 2014 09:31:05 -0800 |
parents | 466386702968 |
children | 0930c6884f8a |
comparison
equal
deleted
inserted
replaced
10:466386702968 | 11:0d0db0d79bfd |
---|---|
41 | 41 |
42 return retval | 42 return retval |
43 | 43 |
44 | 44 |
45 def main(args=sys.argv[1:]): | 45 def main(args=sys.argv[1:]): |
46 # TODO : refactor to be more general and stuff | |
46 | 47 |
47 # parse command line | 48 # parse command line |
48 usage = '%prog [options] [file] [file2] [...]' | 49 usage = '%prog [options] [file] [file2] [...]' |
49 description = """indent files or stdin if no files given""" | 50 description = """indent files or stdin if no files given""" |
50 parser = optparse.OptionParser(usage=usage, description=__doc__) | 51 parser = optparse.OptionParser(usage=usage, description=__doc__) |