view 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
line wrap: on
line source

"""
command line parser for MakeItSo
"""

from optparse import OptionParser

def parser(template):
  """
  return a command line parser for the template
  """
  usage = '%prog [options]'
  description = getattr(template, 'description', None)
  parser = OptionParser(usage=usage, description=description)
  return parser