Mercurial > hg > MakeItSo
comparison makeitso/python_package/{{package}}/main.py @ 155:386a44a52139
moving to a thing with script template
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 05 Jun 2013 13:38:23 -0700 |
parents | d37ee77a9317 |
children | cfd4f1e91090 |
comparison
equal
deleted
inserted
replaced
154:ebc5cfe17d95 | 155:386a44a52139 |
---|---|
5 """ | 5 """ |
6 | 6 |
7 import sys | 7 import sys |
8 import optparse | 8 import optparse |
9 | 9 |
10 def main(args=sys.argv[:]): | 10 def main(args=sys.argv[1:]): |
11 | 11 |
12 # parse command line options | 12 # parse command line options |
13 usage = '%prog [options]' | 13 usage = '%prog [options]' |
14 class PlainDescriptionFormatter(optparse.IndentedHelpFormatter): | 14 class PlainDescriptionFormatter(optparse.IndentedHelpFormatter): |
15 """description formatter for console script entry point""" | 15 """description formatter for console script entry point""" |