comparison makeitso/cli.py @ 57:074a32920f7c

stub for a command-line parser
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 Jan 2011 14:27:09 -0800
parents
children 112bf081148c
comparison
equal deleted inserted replaced
56:728cae02a6ed 57:074a32920f7c
1 """
2 command line parser for MakeItSo
3 """
4
5 from optparse import OptionParser
6
7 def parser(template):
8 """
9 return a command line parser for the template
10 """
11 usage = '%prog [options]'
12 description = getattr(template, 'description', None)
13 parser = OptionParser(usage=usage, description=description)
14 return parser
15