view makeitso/python_module/{{module}}.py @ 145:c07dd14d5842

we always want doctest.ELLIPSIS. why the hell wouldnt we?
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 05 Mar 2012 14:26:54 -0800
parents a203f79c537f
children 88f5bab340a1
line wrap: on
line source

#!/usr/bin/env python

"""
{{module}}
"""

import sys
import optparse

def main(args=sys.argv[1:]):

    # parse command line arguments
    usage = '%prog [options] ...'
    class PlainDescriptionFormatter(optparse.IndentedHelpFormatter):
        """description formatter"""
        def format_description(self, description):
            if description:
                return description + '\n'
            else:
                return ''
    parser = optparse.OptionParser(usage=usage, description=__doc__, formatter=PlainDescriptionFormatter())
    options, args = parser.parse_args(args)

if __name__ == '__main__':
    main()