Mercurial > hg > MakeItSo
view templates/script.py @ 45:3bf29175907c
actually introduce a variable for the script
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 05 Jan 2011 18:09:32 -0800 |
parents | 08a50935e941 |
children | a82aa8b2ad93 |
line wrap: on
line source
#!/usr/bin/env python """ ${description} """ import sys from optparse import OptionParser def main(args=sys.argv[:]): usage = '%prog [options]' parser = OptionParser(usage=usage, description=__doc__) options, args = parser.parse_args(args) if __name__ == '__main__': main()