comparison makeitso/python_module/{{module}}.py @ 129:57834c2b0937

add a single-file module to the thingy
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 08 Jul 2011 10:43:48 -0700
parents
children d9201f911458
comparison
equal deleted inserted replaced
128:0107f95376b3 129:57834c2b0937
1 #!/usr/bin/env python
2
3 """
4 {{module}}
5 """
6
7 import sys
8 from optparse import OptionParser
9
10 def main(args=sys.argv[1:]):
11
12 # parse command line arguments
13 usage = '%prog [options] ...'
14 parser = OptionParser(usage=usage, description=__doc__)
15 options, args = parser.parse_args(args)
16
17 if __name__ == '__main__':
18 main()